Correctly migrate settings/rss/usage stats in macOS. Closes #6041.

This commit is contained in:
sledgehammer999 2016-12-14 17:51:49 +02:00
parent 435886bbf0
commit b2827702e5

View File

@ -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);