diff options
Diffstat (limited to 'opentrack/work.hpp')
-rw-r--r-- | opentrack/work.hpp | 6 |
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() |