summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/windows/setupwindow.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/gui/windows/setupwindow.cpp b/src/gui/windows/setupwindow.cpp
index 0c380362a..ccf83f999 100644
--- a/src/gui/windows/setupwindow.cpp
+++ b/src/gui/windows/setupwindow.cpp
@@ -189,7 +189,10 @@ void SetupWindow::action(const ActionEvent &event)
if (eventId == "Apply")
{
setVisible(Visible_false);
- for_each(mTabs.begin(), mTabs.end(), std::mem_fun(&SetupTab::apply));
+ FOR_EACH (std::list<SetupTab*>::iterator, it, mTabs)
+ {
+ (*it)->apply();
+ }
}
else if (eventId == "Cancel")
{
@@ -297,7 +300,10 @@ void SetupWindow::hideWindows()
void SetupWindow::doCancel()
{
setVisible(Visible_false);
- for_each(mTabs.begin(), mTabs.end(), std::mem_fun(&SetupTab::cancel));
+ FOR_EACH (std::list<SetupTab*>::iterator, it, mTabs)
+ {
+ (*it)->cancel();
+ }
}
void SetupWindow::activateTab(const std::string &name)