Skip to content
Permalink
Browse files

Merge pull request #11057 from Piccirello/fix-pref-saving

Don't save preferences until all options are processed
  • Loading branch information...
Chocobo1 committed Aug 13, 2019
2 parents c15e875 + bed143c commit 85556291282ba8da71ce19ed740923c685086e0b
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/webui/api/appcontroller.cpp
@@ -624,9 +624,6 @@ void AppController::setPreferencesAction()
if (hasKey("dyndns_domain"))
pref->setDynDomainName(it.value().toString());

// Save preferences
pref->apply();

if (hasKey("rss_refresh_interval"))
RSS::Session::instance()->setRefreshInterval(it.value().toUInt());
if (hasKey("rss_max_articles_per_feed"))
@@ -738,6 +735,9 @@ void AppController::setPreferencesAction()
const QHostAddress announceAddr {it.value().toString().trimmed()};
session->setAnnounceIP(announceAddr.isNull() ? QString {} : announceAddr.toString());
}

// Save preferences
pref->apply();
}

void AppController::defaultSavePathAction()

0 comments on commit 8555629

Please sign in to comment.
You can’t perform that action at this time.