on xenial help sign in
added active check
commit935cc5b6265792c27b750c8fe77a9ba3c6802869 authorNick Dedekind <nick.dedekind@canonical.com> dateWed 14 Dec 2016, 13:15 (10 years ago) parent8fe918e
1 file changed+2
plugins/GlobalShortcut/globalshortcut.cpp+2
plugins/GlobalShortcut/globalshortcut.cpp+2
@@ -71,6 +71,8 @@ void GlobalShortcut::keyPressEvent(QKeyEvent * event)
7171
7272void GlobalShortcut::keyReleaseEvent(QKeyEvent * event)
7373{
74+ if (!m_active) return;
75+
7476 event->accept();
7577 Q_EMIT released(m_shortcut.toString());
7678}