delete remove action for desktops
desktop containments never have a remove action. the only way to be deleted is from the activity manager
This commit is contained in:
parent
effb5e8ad1
commit
dee8ff8645
@ -370,7 +370,7 @@ void ShellCorona::screenAdded(QScreen *screen)
|
||||
|
||||
QAction *removeAction = containment->actions()->action("remove");
|
||||
if (removeAction) {
|
||||
removeAction->setVisible(false);
|
||||
removeAction->deleteLater();
|
||||
}
|
||||
|
||||
view->setContainment(containment);
|
||||
@ -553,7 +553,7 @@ void ShellCorona::currentActivityChanged(const QString &newActivity)
|
||||
}
|
||||
QAction *removeAction = c->actions()->action("remove");
|
||||
if (removeAction) {
|
||||
removeAction->setVisible(false);
|
||||
removeAction->deleteLater();
|
||||
}
|
||||
d->views[i]->setContainment(c);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user