1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-16 03:09:57 +01:00

Don't try to register empty global shortcuts (avoids loads of warnings being printed to stderr)

This commit is contained in:
David Sansome 2010-06-20 18:43:20 +00:00
parent 492d8fec87
commit c701c49004

View File

@ -36,6 +36,9 @@ bool QxtGlobalShortcutBackend::DoRegister() {
}
void QxtGlobalShortcutBackend::AddShortcut(QAction* action) {
if (action->shortcut().isEmpty())
return;
QxtGlobalShortcut* shortcut = new QxtGlobalShortcut(action->shortcut(), this);
connect(shortcut, SIGNAL(activated()), action, SLOT(trigger()));
shortcuts_ << shortcut;