summaryrefslogtreecommitdiffhomepage
path: root/logic
diff options
context:
space:
mode:
Diffstat (limited to 'logic')
-rw-r--r--logic/main-settings.cpp15
-rw-r--r--logic/main-settings.hpp1
2 files changed, 16 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
diff --git a/logic/main-settings.hpp b/logic/main-settings.hpp
index b7a9fdce..41edf3e6 100644
--- a/logic/main-settings.hpp
+++ b/logic/main-settings.hpp
@@ -32,6 +32,7 @@ struct OTR_LOGIC_EXPORT key_opts
value<int> button;
key_opts(bundle b, const QString& name);
+ key_opts& operator=(const key_opts& x);
};
struct OTR_LOGIC_EXPORT module_settings