From b2827702e50ab27a81183da190755c43c2e488c9 Mon Sep 17 00:00:00 2001 From: sledgehammer999 Date: Wed, 14 Dec 2016 17:51:49 +0200 Subject: [PATCH] Correctly migrate settings/rss/usage stats in macOS. Closes #6041. --- src/app/upgrade.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/upgrade.h b/src/app/upgrade.h index ba776fceb..7b76ec241 100644 --- a/src/app/upgrade.h +++ b/src/app/upgrade.h @@ -233,7 +233,7 @@ bool upgrade(bool ask = true) void migratePlistToIni(const QString &application) { QIniSettings iniFile("qBittorrent", application); - if (iniFile.allKeys().isEmpty()) return; // We copy the contents of plist, only if inifile does not exist(is empty). + if (!iniFile.allKeys().isEmpty()) return; // We copy the contents of plist, only if inifile does not exist(is empty). QSettings *plistFile = new QSettings("qBittorrent", application); plistFile->setFallbacksEnabled(false);