summaryrefslogtreecommitdiffhomepage
path: root/gui/options-dialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/options-dialog.cpp')
-rw-r--r--gui/options-dialog.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/gui/options-dialog.cpp b/gui/options-dialog.cpp
index b1dfc472..42b5cc52 100644
--- a/gui/options-dialog.cpp
+++ b/gui/options-dialog.cpp
@@ -200,3 +200,10 @@ void OptionsDialog::doCancel()
emit closing();
}
+void OptionsDialog::done(int res)
+{
+ if (res == QDialog::Accepted)
+ doOK();
+ else
+ doCancel();
+}