diff options
| -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 << "\""; |
