mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 12:59:56 -07:00
Keep compatibility with qBittorrent < 2.3.0 (import settings from the registry)
This commit is contained in:
parent
b9241ad5ad
commit
0c40a8ab05
1 changed files with 35 additions and 26 deletions
|
@ -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())
|
if(ret.isNull())
|
||||||
return defaultValue;
|
return defaultValue;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue