summaryrefslogtreecommitdiffhomepage
path: root/logic/main-settings.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'logic/main-settings.cpp')
-rw-r--r--logic/main-settings.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/logic/main-settings.cpp b/logic/main-settings.cpp
index 53a5054c..901e1845 100644
--- a/logic/main-settings.cpp
+++ b/logic/main-settings.cpp
@@ -1,5 +1,7 @@
#include "main-settings.hpp"
+namespace main_settings_impl {
+
using namespace options;
main_settings::main_settings() :
@@ -61,3 +63,16 @@ key_opts::key_opts(bundle b, const QString& name) :
button(b, QString("button-%1").arg(name), -1)
{}
+key_opts& key_opts::operator=(const key_opts& x)
+{
+ if (&x != this)
+ {
+ keycode = x.keycode();
+ guid = x.guid();
+ button = x.button();
+ }
+
+ return *this;
+}
+
+} // ns main_settings_impl