|
@@ -215,7 +215,7 @@ ctkSettingsPanel* ctkSettingsDialog::panel(const QString& label)const
|
|
|
// --------------------------------------------------------------------------
|
|
|
void ctkSettingsDialog::accept()
|
|
|
{
|
|
|
- this->applySettings();
|
|
|
+ this->acceptSettings();
|
|
|
this->Superclass::accept();
|
|
|
}
|
|
|
|
|
@@ -227,6 +227,17 @@ void ctkSettingsDialog::reject()
|
|
|
}
|
|
|
|
|
|
// --------------------------------------------------------------------------
|
|
|
+void ctkSettingsDialog::acceptSettings()
|
|
|
+{
|
|
|
+ Q_D(ctkSettingsDialog);
|
|
|
+ foreach(ctkSettingsPanel* panel, d->Panels.values())
|
|
|
+ {
|
|
|
+ panel->acceptSettings();
|
|
|
+ }
|
|
|
+ d->SettingsButtonBox->button(QDialogButtonBox::Reset)->setEnabled(false);
|
|
|
+}
|
|
|
+
|
|
|
+// --------------------------------------------------------------------------
|
|
|
void ctkSettingsDialog::applySettings()
|
|
|
{
|
|
|
Q_D(ctkSettingsDialog);
|