summaryrefslogtreecommitdiffhomepage
path: root/opentrack/work.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-10-21 10:10:56 +0200
committerStanislaw Halik <sthalik@misaki.pl>2014-10-21 10:29:17 +0200
commitf6d8fbbf3f4bc6984020de776285a38ad45c3631 (patch)
tree8d9b297e09de1053878a01ee1bf198803daa7967 /opentrack/work.hpp
parenta1ce590fb13ce34a3051f619f0d9cdbc1d2dffa5 (diff)
workaround qxt-mini "shortcut failed to unregister"
Diffstat (limited to 'opentrack/work.hpp')
-rw-r--r--opentrack/work.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/opentrack/work.hpp b/opentrack/work.hpp
index 73ba691b..d0130018 100644
--- a/opentrack/work.hpp
+++ b/opentrack/work.hpp
@@ -24,8 +24,8 @@ struct Work
handle(handle)
{
#ifndef _WIN32
- QObject::connect(&sc->keyCenter, SIGNAL(activated()), recv, SLOT(shortcutRecentered()));
- QObject::connect(&sc->keyToggle, SIGNAL(activated()), recv, SLOT(shortcutToggled()));
+ QObject::connect(sc->keyCenter.get(), SIGNAL(activated()), recv, SLOT(shortcutRecentered()));
+ QObject::connect(sc->keyToggle.get(), SIGNAL(activated()), recv, SLOT(shortcutToggled()));
#else
QObject::connect(sc->keybindingWorker.get(), SIGNAL(center()), recv, SLOT(shortcutRecentered()));
QObject::connect(sc->keybindingWorker.get(), SIGNAL(toggle()), recv, SLOT(shortcutToggled()));
@@ -35,7 +35,7 @@ struct Work
void reload_shortcuts()
{
- sc = std::make_shared<Shortcuts>(handle);
+ sc->reload();
}
~Work()