diff options
-rw-r--r-- | gui/options-dialog.cpp | 7 | ||||
-rw-r--r-- | gui/options-dialog.hpp | 1 |
2 files changed, 8 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(); +} diff --git a/gui/options-dialog.hpp b/gui/options-dialog.hpp index 8c62b278..e9359b6d 100644 --- a/gui/options-dialog.hpp +++ b/gui/options-dialog.hpp @@ -23,6 +23,7 @@ private: private slots: void doOK(); void doCancel(); + void done(int res) override; void bind_key(key_opts &kopts, QLabel* label); void set_disable_translation_state(bool value); }; |