X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fsettingspages%2Fcoreaccountsettingspage.cpp;h=3a6f1cd6ad7c5e5af206e0f9a612de6b6249fdfd;hp=870f78c66ec04f687682245b7b457cb3ce23bdc7;hb=158443f71d48215eea8b47b836b61afd77654b78;hpb=b7447afe8e836376776dac26704e227a678d2913 diff --git a/src/qtui/settingspages/coreaccountsettingspage.cpp b/src/qtui/settingspages/coreaccountsettingspage.cpp index 870f78c6..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,10 +225,13 @@ 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())) + } + if (*model() != *Client::coreAccountModel()) { return true; + } return false; }