From 8a6b9152985ed346afa56a1c09079f2cd9bfdcaf Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 5 Nov 2014 05:46:09 +0100 Subject: fix keyboard shortcuts on win32 change during tracking Used to become unusable if changed during tracking. --- opentrack/work.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'opentrack/work.hpp') diff --git a/opentrack/work.hpp b/opentrack/work.hpp index bb9a4534..9a9889a7 100644 --- a/opentrack/work.hpp +++ b/opentrack/work.hpp @@ -27,8 +27,8 @@ struct Work 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())); + QObject::connect(sc.get(), SIGNAL(center()), recv, SLOT(shortcutRecentered())); + QObject::connect(sc.get(), SIGNAL(toggle()), recv, SLOT(shortcutToggled())); #endif tracker->start(); } -- cgit v1.2.3