1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01:00

Fix loading profile version for updateDatabase

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
Juraj Oravec 2024-03-21 10:34:29 +01:00
parent 3598dc7406
commit 015a39b428
Signed by: SGOrava
GPG Key ID: 13660A3F1D9F093B

View File

@ -167,7 +167,7 @@ void ProfileManager::updateCurrentProfile()
// If file exists, just update the profile to current version // If file exists, just update the profile to current version
if (versionFile.exists()) { if (versionFile.exists()) {
versionFile.open(QFile::ReadOnly); versionFile.open(QFile::ReadOnly);
QString profileVersion = QString::fromUtf8(versionFile.readAll()); profileVersion = QString::fromUtf8(versionFile.readAll());
versionFile.close(); versionFile.close();
updateProfile(QString::fromLatin1(Qz::VERSION), profileVersion.trimmed()); updateProfile(QString::fromLatin1(Qz::VERSION), profileVersion.trimmed());