mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-26 19:26:59 +03:00
Improvement to last fix
This commit is contained in:
parent
38cb4ccbd3
commit
6b12371f50
1 changed files with 2 additions and 2 deletions
|
@ -134,9 +134,9 @@ void EventManager::setGlobalPreferences(QVariantMap m) const {
|
|||
QVariantList download_at_path = m["download_in_scan_dirs"].toList();
|
||||
QStringList old_folders = Preferences::getScanDirs();
|
||||
QStringList new_folders = m["scan_dirs"].toStringList();
|
||||
if(download_at_path.size() == new_folders.size()) {
|
||||
Preferences::setScanDirs(new_folders);
|
||||
Preferences::setDownloadInScanDirs(download_at_path);
|
||||
if(download_at_path.size() == new_folders.size()) {
|
||||
foreach(const QString &old_folder, old_folders) {
|
||||
// Update deleted folders
|
||||
if(!new_folders.contains(old_folder)) {
|
||||
|
|
Loading…
Reference in a new issue