diff options
Diffstat (limited to 'gui/options-dialog.cpp')
-rw-r--r-- | gui/options-dialog.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gui/options-dialog.cpp b/gui/options-dialog.cpp index 1edf069d..65407184 100644 --- a/gui/options-dialog.cpp +++ b/gui/options-dialog.cpp @@ -29,8 +29,12 @@ static QString kopts_to_string(const key_opts& kopts) return kopts.keycode; } -OptionsDialog::OptionsDialog(main_settings& main, std::function<void()> register_global_keys) - : main(main), register_global_keys(register_global_keys) +OptionsDialog::OptionsDialog(main_settings& main, + std::function<void()> register_global_keys, + std::function<void(bool)> pause_keybindings) : + main(main), + register_global_keys(register_global_keys), + pause_keybindings(pause_keybindings) { ui.setupUi(this); @@ -115,7 +119,9 @@ void OptionsDialog::bind_key(key_opts& kopts, QLabel* label) d.close(); } }); + pause_keybindings(true); d.exec(); + pause_keybindings(false); register_global_keys(); label->setText(kopts_to_string(kopts)); delete k; |