mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06:00
Don't save preferences until all options are processed
This commit is contained in:
@@ -624,9 +624,6 @@ void AppController::setPreferencesAction()
|
|||||||
if (hasKey("dyndns_domain"))
|
if (hasKey("dyndns_domain"))
|
||||||
pref->setDynDomainName(it.value().toString());
|
pref->setDynDomainName(it.value().toString());
|
||||||
|
|
||||||
// Save preferences
|
|
||||||
pref->apply();
|
|
||||||
|
|
||||||
if (hasKey("rss_refresh_interval"))
|
if (hasKey("rss_refresh_interval"))
|
||||||
RSS::Session::instance()->setRefreshInterval(it.value().toUInt());
|
RSS::Session::instance()->setRefreshInterval(it.value().toUInt());
|
||||||
if (hasKey("rss_max_articles_per_feed"))
|
if (hasKey("rss_max_articles_per_feed"))
|
||||||
@@ -738,6 +735,9 @@ void AppController::setPreferencesAction()
|
|||||||
const QHostAddress announceAddr {it.value().toString().trimmed()};
|
const QHostAddress announceAddr {it.value().toString().trimmed()};
|
||||||
session->setAnnounceIP(announceAddr.isNull() ? QString {} : announceAddr.toString());
|
session->setAnnounceIP(announceAddr.isNull() ? QString {} : announceAddr.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Save preferences
|
||||||
|
pref->apply();
|
||||||
}
|
}
|
||||||
|
|
||||||
void AppController::defaultSavePathAction()
|
void AppController::defaultSavePathAction()
|
||||||
|
|||||||
Reference in New Issue
Block a user