because KGlobalShorcuts is not exactly what i'd call symmetrical, we need to ensure the object name is constant at all costs. that design really needs to be rethough in KDE5 as it lacks.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=861708
This commit is contained in:
parent
80e89dff6f
commit
874870aaee
@ -979,7 +979,7 @@ void Applet::setGlobalShortcut(const KShortcut &shortcut)
|
||||
if (!d->activationAction) {
|
||||
d->activationAction = new KAction(this);
|
||||
d->activationAction->setText(i18n("Activate %1 Widget", name()));
|
||||
d->activationAction->setObjectName(QString("activate widget %1").arg(name())); // NO I18N
|
||||
d->activationAction->setObjectName(QString("activate widget %1").arg(id())); // NO I18N
|
||||
connect(d->activationAction, SIGNAL(triggered()), this, SIGNAL(activate()));
|
||||
connect(this, SIGNAL(activate()), this, SLOT(setFocus()));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user