|
@@ -215,7 +215,7 @@ ctkSettingsPanel* ctkSettingsDialog::panel(const QString& label)const
|
|
|
// --------------------------------------------------------------------------
|
|
|
void ctkSettingsDialog::accept()
|
|
|
{
|
|
|
- this->acceptSettings();
|
|
|
+ this->applySettings();
|
|
|
this->Superclass::accept();
|
|
|
}
|
|
|
|
|
@@ -227,17 +227,6 @@ 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);
|