From 85d532953ffdd611aa4e5767c59df0e62a8678a7 Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Mon, 16 Jul 2012 17:29:42 +0200 Subject: [PATCH] Emit globalShortcutTriggered() directly. There is no need for a queued connection call. --- src/autotype/x11/AutoTypeX11.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/autotype/x11/AutoTypeX11.cpp b/src/autotype/x11/AutoTypeX11.cpp index ab9a7a6b..5cb3d27f 100644 --- a/src/autotype/x11/AutoTypeX11.cpp +++ b/src/autotype/x11/AutoTypeX11.cpp @@ -155,7 +155,7 @@ int AutoTypePlatformX11::platformEventFilter(void* event) if (xevent->type == KeyPress && m_currentGlobalKey && xevent->xkey.keycode == m_currentGlobalKeycode && (xevent->xkey.state & m_modifierMask) == m_currentGlobalNativeModifiers && !QApplication::focusWidget()) { - QMetaObject::invokeMethod(this, "globalShortcutTriggered", Qt::QueuedConnection); + Q_EMIT globalShortcutTriggered(); return 1; } if (xevent->type == MappingNotify) {