Move Preferences backend code into SettingsStorage class

Closes #4764
This commit is contained in:
Vladimir Golovnev (Glassez)
2016-02-09 11:55:02 +03:00
parent a96cabfe73
commit d05d5a85a5
7 changed files with 320 additions and 189 deletions

View File

@@ -129,8 +129,8 @@ bool upgradeResumeFile(const QString &filepath, const QVariantHash &oldTorrent =
bool upgrade(bool ask = true)
{
// Move RSS cookies to common storage
Preferences::instance()->moveRSSCookies();
// Upgrade preferences
Preferences::instance()->upgrade();
QString backupFolderPath = Utils::Fs::expandPathAbs(Utils::Fs::QDesktopServicesDataLocation() + "BT_backup");
QDir backupFolderDir(backupFolderPath);