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:
parent
544e2f3f2e
commit
62453f515a
@ -526,10 +526,12 @@ bool MainApplication::checkProfileDir()
|
|||||||
QString homePath = QDir::homePath();
|
QString homePath = QDir::homePath();
|
||||||
homePath+="/.qupzilla/";
|
homePath+="/.qupzilla/";
|
||||||
|
|
||||||
|
QByteArray rData;
|
||||||
if (QDir(homePath).exists()) {
|
if (QDir(homePath).exists()) {
|
||||||
QFile versionFile(homePath+"version");
|
QFile versionFile(homePath+"version");
|
||||||
versionFile.open(QFile::ReadOnly);
|
versionFile.open(QFile::ReadOnly);
|
||||||
if (versionFile.readAll().contains(QupZilla::VERSION.toAscii())) {
|
rData = versionFile.readAll();
|
||||||
|
if (rData.contains(QupZilla::VERSION.toAscii())) {
|
||||||
versionFile.close();
|
versionFile.close();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -552,6 +554,9 @@ bool MainApplication::checkProfileDir()
|
|||||||
versionFile.write(QupZilla::VERSION.toAscii());
|
versionFile.write(QupZilla::VERSION.toAscii());
|
||||||
versionFile.close();
|
versionFile.close();
|
||||||
|
|
||||||
|
if (rData.contains("0.9.6")) // Data not changed from this version
|
||||||
|
return true;
|
||||||
|
|
||||||
dir.mkdir("profiles");
|
dir.mkdir("profiles");
|
||||||
dir.cd("profiles");
|
dir.cd("profiles");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user