Browse Source

Keep compatibility with qBittorrent < 2.3.0 (import settings from the registry)

adaptive-webui-19844
Christophe Dumez 14 years ago
parent
commit
0c40a8ab05
  1. 9
      src/qinisettings.h

9
src/qinisettings.h

@ -59,6 +59,15 @@ public: @@ -59,6 +59,15 @@ public:
}
}
}
} else {
// Keep compatibility with qBittorrent < 2.3.0
// Import the setting from the registry
QSettings old_settings(organizationName(), applicationName());
ret = old_settings.value(key);
if(!ret.isEmpty()) {
setValue(key, ret);
old_settings.remove(key);
}
}
if(ret.isNull())
return defaultValue;

Loading…
Cancel
Save