Browse Source

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

adaptive-webui-19844
sledgehammer999 8 years ago
parent
commit
b2827702e5
  1. 2
      src/app/upgrade.h

2
src/app/upgrade.h

@ -233,7 +233,7 @@ bool upgrade(bool ask = true)
void migratePlistToIni(const QString &application) void migratePlistToIni(const QString &application)
{ {
QIniSettings iniFile("qBittorrent", 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); QSettings *plistFile = new QSettings("qBittorrent", application);
plistFile->setFallbacksEnabled(false); plistFile->setFallbacksEnabled(false);

Loading…
Cancel
Save