X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fsettingsdlg.cpp;h=a249c79bb18f3a2e927c3d789e474cbcda06cc1d;hp=b02e7117a3be2ff48ddae593b7b646858cac374d;hb=b68ffc844fc7504ecceeaa9348107ca5c249bd51;hpb=0c9cd0eef379e1d3e10a75cc8506a7e65f95fd67 diff --git a/src/qtui/settingsdlg.cpp b/src/qtui/settingsdlg.cpp index b02e7117..a249c79b 100644 --- a/src/qtui/settingsdlg.cpp +++ b/src/qtui/settingsdlg.cpp @@ -67,7 +67,7 @@ void SettingsDlg::registerSettingsPage(SettingsPage *sp) { pages[QString("%1$%2").arg(sp->category(), sp->title())] = sp; sp->load(); // TESTING - selectPage(sp->category(), sp->title()); + // selectPage(sp->category(), sp->title()); } void SettingsDlg::selectPage(const QString &cat, const QString &title) { @@ -121,7 +121,9 @@ void SettingsDlg::setButtonStates() { void SettingsDlg::buttonClicked(QAbstractButton *button) { switch(ui.buttonBox->standardButton(button)) { case QDialogButtonBox::Ok: - if(applyChanges()) accept(); + if(currentPage() && currentPage()->hasChanged()) { + if(applyChanges()) accept(); + } else accept(); break; case QDialogButtonBox::Apply: applyChanges();