summaryrefslogtreecommitdiff
path: root/src/gui/setup.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-08-12 03:24:12 +0300
committerAndrei Karas <akaras@inbox.ru>2011-08-12 03:28:45 +0300
commit383b667c30665377ee5bd5c1167530eb44ce4571 (patch)
treeeaa4e47e5ad9dcc3a7cda7498b412b6da1aefe10 /src/gui/setup.cpp
parentfca4273667f15afba055d3c296094f2f41c7ae91 (diff)
downloadplus-383b667c30665377ee5bd5c1167530eb44ce4571.tar.gz
plus-383b667c30665377ee5bd5c1167530eb44ce4571.tar.bz2
plus-383b667c30665377ee5bd5c1167530eb44ce4571.tar.xz
plus-383b667c30665377ee5bd5c1167530eb44ce4571.zip
Allow hide setup window by pressing key "Setup window".
Diffstat (limited to 'src/gui/setup.cpp')
-rw-r--r--src/gui/setup.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gui/setup.cpp b/src/gui/setup.cpp
index 0b40d8c01..690871189 100644
--- a/src/gui/setup.cpp
+++ b/src/gui/setup.cpp
@@ -145,8 +145,7 @@ void Setup::action(const gcn::ActionEvent &event)
}
else if (event.getId() == "Cancel")
{
- setVisible(false);
- for_each(mTabs.begin(), mTabs.end(), std::mem_fun(&SetupTab::cancel));
+ doCancel();
}
else if (event.getId() == "Store")
{
@@ -189,4 +188,10 @@ void Setup::registerWindowForReset(Window *window)
mWindowsToReset.push_back(window);
}
+void Setup::doCancel()
+{
+ setVisible(false);
+ for_each(mTabs.begin(), mTabs.end(), std::mem_fun(&SetupTab::cancel));
+}
+
Setup *setupWindow;