diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-11-22 15:23:06 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-11-22 15:23:06 +0100 |
commit | 104f23670b7c3c5a1091a45d513b32bf72040a19 (patch) | |
tree | 7341d556d25b53c98a2a39b5423d45c5e6c6b1e4 /qxt-mini/qxtglobalshortcut.cpp | |
parent | db246232e898e9c4b351e80cede0dbea271ca8b8 (diff) |
revert qxt changes
Diffstat (limited to 'qxt-mini/qxtglobalshortcut.cpp')
-rw-r--r-- | qxt-mini/qxtglobalshortcut.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qxt-mini/qxtglobalshortcut.cpp b/qxt-mini/qxtglobalshortcut.cpp index 44b9f917..8515a6b2 100644 --- a/qxt-mini/qxtglobalshortcut.cpp +++ b/qxt-mini/qxtglobalshortcut.cpp @@ -74,6 +74,7 @@ QxtGlobalShortcutPrivate::~QxtGlobalShortcutPrivate() bool QxtGlobalShortcutPrivate::setShortcut(const QKeySequence& shortcut)
{
+ if (shortcut.toString() == "") return false;
Qt::KeyboardModifiers allMods = Qt::ShiftModifier | Qt::ControlModifier | Qt::AltModifier | Qt::MetaModifier;
key = shortcut.isEmpty() ? Qt::Key(0) : Qt::Key((shortcut[0] ^ allMods) & shortcut[0]);
mods = shortcut.isEmpty() ? Qt::KeyboardModifiers(0) : Qt::KeyboardModifiers(shortcut[0] & allMods);
|