summaryrefslogtreecommitdiffhomepage
path: root/gui
diff options
context:
space:
mode:
Diffstat (limited to 'gui')
-rw-r--r--gui/settings.cpp2
-rw-r--r--gui/settings.hpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/gui/settings.cpp b/gui/settings.cpp
index 711fb0f0..79a8dbfb 100644
--- a/gui/settings.cpp
+++ b/gui/settings.cpp
@@ -45,7 +45,7 @@ void options_dialog::set_disable_translation_state(bool value)
});
}
-options_dialog::options_dialog(std::function<void(bool)>&& pause_keybindings) :
+options_dialog::options_dialog(std::function<void(bool)> pause_keybindings) :
pause_keybindings(std::move(pause_keybindings))
{
ui.setupUi(this);
diff --git a/gui/settings.hpp b/gui/settings.hpp
index 50245a59..8ef5aa2d 100644
--- a/gui/settings.hpp
+++ b/gui/settings.hpp
@@ -17,7 +17,7 @@ class OTR_GUI_EXPORT options_dialog : public QDialog
signals:
void closing();
public:
- explicit options_dialog(std::function<void(bool)>&& pause_keybindings);
+ explicit options_dialog(std::function<void(bool)> pause_keybindings);
private:
main_settings main;
std::function<void(bool)> pause_keybindings;