diff --git a/QHotkey/qhotkey_x11.cpp b/QHotkey/qhotkey_x11.cpp index 9c1c209..95ccfe3 100644 --- a/QHotkey/qhotkey_x11.cpp +++ b/QHotkey/qhotkey_x11.cpp @@ -135,7 +135,6 @@ bool QHotkeyPrivateX11::unregisterShortcut(QHotkey::NativeShortcut shortcut) if(errorHandler.hasError) { qCWarning(logQHotkey) << "Failed to unregister hotkey. Error:" << qPrintable(errorHandler.errorString); - this->unregisterShortcut(shortcut); return false; } else return true;