Fix globalshortcut status print

This commit is contained in:
Jonas Kvinge 2019-01-01 20:11:46 +01:00
parent cef334c210
commit de4885d223
1 changed files with 2 additions and 3 deletions

View File

@ -89,13 +89,12 @@ bool GlobalShortcut::setShortcut(const QKeySequence &shortcut) {
bool result = registerShortcut(native_key_, native_mods_);
if (result) {
internal_shortcuts_.insert(qMakePair(native_key_, native_mods_), this);
qLog(Info) << "Registered shortcut" << shortcut_.toString();
}
else {
qLog(Error) << "Failed to register shortcut" << shortcut_.toString();
}
qLog(Info) << "Registered shortcut" << shortcut_.toString();
return result;
}
@ -118,7 +117,7 @@ bool GlobalShortcut::unsetShortcut() {
qLog(Info) << "Unregister shortcut" << shortcut_.toString();
}
else {
qLog(Error) << "Failed to unregister shortcut:" << shortcut_.toString();
qLog(Error) << "Failed to unregister shortcut" << shortcut_.toString();
}
qt_key_ = Qt::Key(0);