Modified IOptionsPage interface for Apply button

The previous interface wasn't sufficient to properly support the Apply
button, since it didn't separate applying the changes from the cleanup
phase.

Designer settings pages still need some fixing.

Fixes Apply button causing problems for certain plugins, for example the
QuickOpen.
This commit is contained in:
Thorbjørn Lindeijer
2009-01-13 15:41:33 +01:00
parent e6f7cb68a5
commit 59c8b93309
36 changed files with 143 additions and 124 deletions

View File

@@ -95,11 +95,10 @@ QWidget *SettingsPage::createPage(QWidget *parent)
return m_widget;
}
void SettingsPage::finished(bool accepted)
void SettingsPage::apply()
{
if (!accepted || !m_widget)
if (!m_widget)
return;
GitPlugin::instance()->setSettings(m_widget->settings());
}