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:
Marco Martin 2014-03-10 19:46:41 +01:00
parent effb5e8ad1
commit dee8ff8645

View File

@ -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);
}