1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36:34 +01:00

ProfileManager: Don't copy data when profile is from development version

Allows to jumping from stable version to development version
without it always backing up settings, browsedata and session.
This commit is contained in:
David Rosca 2018-03-01 16:38:24 +01:00
parent 18d009c325
commit cdbc64eb6d
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8

View File

@ -183,8 +183,12 @@ void ProfileManager::updateProfile(const QString &current, const QString &profil
Updater::Version prof(profile);
// Profile is from newer version than running application
if (prof > Updater::Version(Qz::VERSION)) {
copyDataToProfile();
// Only copy data when profile is not from development version
if (prof.revisionNumber != 99) {
copyDataToProfile();
}
return;
}