diff options
Diffstat (limited to 'gui')
-rw-r--r-- | gui/main-window.cpp | 2 | ||||
-rw-r--r-- | gui/options-dialog.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gui/main-window.cpp b/gui/main-window.cpp index 7de95f98..a1e86863 100644 --- a/gui/main-window.cpp +++ b/gui/main-window.cpp @@ -127,7 +127,7 @@ MainWindow::MainWindow() : init_tray_menu(); connect(&s.tray_enabled, - static_cast<void (base_value::*)(bool)>(&base_value::valueChanged), + static_cast<void (base_value::*)(bool) const>(&base_value::valueChanged), this, [&](bool) { ensure_tray(); }); ensure_tray(); diff --git a/gui/options-dialog.cpp b/gui/options-dialog.cpp index 3f051c9f..3c3012b5 100644 --- a/gui/options-dialog.cpp +++ b/gui/options-dialog.cpp @@ -100,7 +100,7 @@ OptionsDialog::OptionsDialog(std::function<void(bool)> pause_keybindings) : tmp val = val_; val.label->setText(kopts_to_string(val.opt)); connect(&val.opt.keycode, - static_cast<void (base_value::*)(const QString&)>(&base_value::valueChanged), + static_cast<void (base_value::*)(const QString&) const>(&base_value::valueChanged), val.label, [=](const QString&) -> void { val.label->setText(kopts_to_string(val.opt)); }); { |