diff options
| author | Iain Lane <iain.lane@canonical.com> | 2014-10-03 17:53:29 +0100 |
|---|---|---|
| committer | Iain Lane <iain.lane@canonical.com> | 2014-10-03 17:53:29 +0100 |
| commit | 7070963eb4610c98a46300984e713160130d1da1 (patch) | |
| tree | 849b1b7ec499a6c29dfaa3ac5f836a9041fa5d94 /unity-shared | |
| parent | 2748a02050a90c339c1430430f69816d088359e5 (diff) | |
Compare with the value of key()
(bzr r3875.1.3)
Diffstat (limited to 'unity-shared')
| -rw-r--r-- | unity-shared/GnomeKeyGrabber.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unity-shared/GnomeKeyGrabber.cpp b/unity-shared/GnomeKeyGrabber.cpp index 8f6467447..76c7161c0 100644 --- a/unity-shared/GnomeKeyGrabber.cpp +++ b/unity-shared/GnomeKeyGrabber.cpp @@ -200,7 +200,7 @@ unsigned int GnomeGrabber::Impl::grabAccelerator(char const* accelerator, unsign CompAction action; action.keyFromString(accelerator); - if (action.keyToString() == "Disabled") + if (action.key().toString().empty()) { CompString prefixed = "XF86" + CompString(accelerator); LOG_DEBUG(logger) << "Can't grab \"" << accelerator << "\", trying \"" << prefixed << "\""; |
