diff options
author | Thorbjørn Lindeijer <[email protected]> | 2009-01-13 15:41:33 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <[email protected]> | 2009-01-13 16:03:55 +0100 |
commit | 59c8b933094b08513d1a7aadccb5b5c000972b72 (patch) | |
tree | 7d3ac5fa2f71635aef83b416bd58dddce42237a6 /src/plugins/git/settingspage.cpp | |
parent | e6f7cb68a56e4531020273b73c06781536bd3158 (diff) |
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.
Diffstat (limited to 'src/plugins/git/settingspage.cpp')
-rw-r--r-- | src/plugins/git/settingspage.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/git/settingspage.cpp b/src/plugins/git/settingspage.cpp index 037176b52d9..838e3ad2ddf 100644 --- a/src/plugins/git/settingspage.cpp +++ b/src/plugins/git/settingspage.cpp @@ -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()); } - |