mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
plasma: parent the notifications services to the widgets
because the frames may be deleted at any time Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
26aaa47acc
commit
21d66f5e75
1 changed files with 2 additions and 0 deletions
|
@ -249,6 +249,7 @@ void ApplicationsWidget::slotRemoveActivated()
|
|||
if (!plasmaservice) {
|
||||
kWarning() << "Could not get service for" << applicationframe->name;
|
||||
} else {
|
||||
plasmaservice->setParent(this);
|
||||
const QVariantMap plasmaserviceargs = plasmaservice->operationParameters("userClosed");
|
||||
(void)plasmaservice->startOperationCall("userClosed", plasmaserviceargs);
|
||||
}
|
||||
|
@ -286,6 +287,7 @@ void ApplicationsWidget::slotActionReleased()
|
|||
if (!plasmaservice) {
|
||||
kWarning() << "Could not get service for" << actionframe->name;
|
||||
} else {
|
||||
plasmaservice->setParent(this);
|
||||
QVariantMap plasmaserviceargs = plasmaservice->operationParameters("invokeAction");
|
||||
plasmaserviceargs["actionId"] = actionid;
|
||||
(void)plasmaservice->startOperationCall("invokeAction", plasmaserviceargs);
|
||||
|
|
Loading…
Add table
Reference in a new issue