if the shortcut hasn't changed, don't try and update it

This commit is contained in:
Aaron Seigo 2011-12-06 17:37:54 +01:00
parent abd1d9ddba
commit 3f7859b557

View File

@ -1567,6 +1567,8 @@ void Applet::setGlobalShortcut(const KShortcut &shortcut)
foreach (QWidget *w, widgets) { foreach (QWidget *w, widgets) {
w->addAction(d->activationAction); w->addAction(d->activationAction);
} }
} else if (d->activationAction->globalShortcut() == shortcut) {
return;
} }
//kDebug() << "before" << shortcut.primary() << d->activationAction->globalShortcut().primary(); //kDebug() << "before" << shortcut.primary() << d->activationAction->globalShortcut().primary();