diff options
| -rw-r--r-- | unity-shared/GnomeKeyGrabber.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/unity-shared/GnomeKeyGrabber.cpp b/unity-shared/GnomeKeyGrabber.cpp index 76c7161c0..563390b46 100644 --- a/unity-shared/GnomeKeyGrabber.cpp +++ b/unity-shared/GnomeKeyGrabber.cpp @@ -202,12 +202,14 @@ unsigned int GnomeGrabber::Impl::grabAccelerator(char const* accelerator, unsign if (action.key().toString().empty()) { - CompString prefixed = "XF86" + CompString(accelerator); - LOG_DEBUG(logger) << "Can't grab \"" << accelerator << "\", trying \"" << prefixed << "\""; - action.keyFromString(prefixed); + CompString prefixed = "XF86" + CompString(accelerator); + LOG_DEBUG(logger) << "Can't grab \"" << accelerator << "\", trying \"" << prefixed << "\""; + action.keyFromString(prefixed); } else - LOG_DEBUG(logger) << "grabAccelerator \"" << accelerator << "\""; + { + LOG_DEBUG(logger) << "grabAccelerator \"" << accelerator << "\""; + } if (!isActionPostponed(action)) { |
