X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fsettingspages%2Fcoreaccountsettingspage.cpp;h=3a6f1cd6ad7c5e5af206e0f9a612de6b6249fdfd;hp=0ccf5ad445f0cca727e28b8b8bc464b204d1a6df;hb=158443f71d48215eea8b47b836b61afd77654b78;hpb=db6e6642a43143bc45ddb0732d144815b68e37f8;ds=sidebyside diff --git a/src/qtui/settingspages/coreaccountsettingspage.cpp b/src/qtui/settingspages/coreaccountsettingspage.cpp index 0ccf5ad4..3a6f1cd6 100644 --- a/src/qtui/settingspages/coreaccountsettingspage.cpp +++ b/src/qtui/settingspages/coreaccountsettingspage.cpp @@ -28,8 +28,7 @@ CoreAccountSettingsPage::CoreAccountSettingsPage(QWidget *parent) : SettingsPage(tr("Remote Cores"), QString(), parent), _lastAccountId(0), - _lastAutoConnectId(0), - _standalone(false) + _lastAutoConnectId(0) { ui.setupUi(this); initAutoWidgets(); @@ -81,6 +80,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 +225,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; }