summaryrefslogtreecommitdiff
path: root/src/gui/windows/setupwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/setupwindow.cpp')
-rw-r--r--src/gui/windows/setupwindow.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gui/windows/setupwindow.cpp b/src/gui/windows/setupwindow.cpp
index 7239061ff..93556ab08 100644
--- a/src/gui/windows/setupwindow.cpp
+++ b/src/gui/windows/setupwindow.cpp
@@ -243,6 +243,18 @@ void SetupWindow::registerWindowForReset(Window *const window)
mWindowsToReset.push_back(window);
}
+void SetupWindow::unregisterWindowForReset(Window *const window)
+{
+ FOR_EACH (std::list<Window*>::const_iterator, it, mWindowsToReset)
+ {
+ if (*it == window)
+ {
+ mWindowsToReset.erase(it);
+ return;
+ }
+ }
+}
+
void SetupWindow::doCancel()
{
setVisible(false);