mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +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:
parent
544e2f3f2e
commit
62453f515a
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user