X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fsettingspages%2Fcoreaccountsettingspage.cpp;fp=src%2Fqtui%2Fsettingspages%2Fcoreaccountsettingspage.cpp;h=dfb745612088ae002bdfafd209eff827e1b4e38f;hp=0ccf5ad445f0cca727e28b8b8bc464b204d1a6df;hb=f7b02c31c6fd2ef2cae343c2df8b1fed1c4fb177;hpb=db6e6642a43143bc45ddb0732d144815b68e37f8 diff --git a/src/qtui/settingspages/coreaccountsettingspage.cpp b/src/qtui/settingspages/coreaccountsettingspage.cpp index 0ccf5ad4..dfb74561 100644 --- a/src/qtui/settingspages/coreaccountsettingspage.cpp +++ b/src/qtui/settingspages/coreaccountsettingspage.cpp @@ -81,6 +81,8 @@ void CoreAccountSettingsPage::load() ui.autoConnectAccount->setCurrentIndex(idx.isValid() ? idx.row() : 0); ui.autoConnectAccount->setProperty("storedValue", ui.autoConnectAccount->currentIndex()); setWidgetStates(); + // Mark as no changes made, we just loaded settings + setChangedState(false); } @@ -224,8 +226,10 @@ void CoreAccountSettingsPage::widgetHasChanged() bool CoreAccountSettingsPage::testHasChanged() { - if (ui.autoConnectAccount->currentIndex() != ui.autoConnectAccount->property("storedValue").toInt()) + if (ui.autoConnectAccount->currentIndex() != + ui.autoConnectAccount->property("storedValue").toInt()) { return true; + } if (*model() != *Client::coreAccountModel()) { return true; }