1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

Structure of browsingdata.db has not been changes from 0.9.6 to 0.9.7,

so we won't rewrite user's saved data.
This commit is contained in:
nowrep 2011-03-04 20:22:20 +01:00
parent 544e2f3f2e
commit 62453f515a

View File

@ -526,14 +526,16 @@ bool MainApplication::checkProfileDir()
QString homePath = QDir::homePath();
homePath+="/.qupzilla/";
QByteArray rData;
if (QDir(homePath).exists()) {
QFile versionFile(homePath+"version");
versionFile.open(QFile::ReadOnly);
if (versionFile.readAll().contains(QupZilla::VERSION.toAscii())) {
rData = versionFile.readAll();
if (rData.contains(QupZilla::VERSION.toAscii())) {
versionFile.close();
return true;
}
versionFile.close();
versionFile.close();
#ifdef DEVELOPING
return true;
#endif
@ -552,6 +554,9 @@ bool MainApplication::checkProfileDir()
versionFile.write(QupZilla::VERSION.toAscii());
versionFile.close();
if (rData.contains("0.9.6")) // Data not changed from this version
return true;
dir.mkdir("profiles");
dir.cd("profiles");