mirror of
https://github.com/KDE/latte-dock.git
synced 2024-12-23 01:33:50 +03:00
viewsdialog:remove views without user confirmation
--this is because view removals from viewsdialog have already been confirmed from the user
This commit is contained in:
parent
2bf647db8e
commit
0aad703b45
@ -1653,10 +1653,8 @@ void GenericLayout::removeView(const Latte::Data::View &viewData)
|
|||||||
Plasma::Containment *viewcontainment = containmentForId(viewData.id.toUInt());
|
Plasma::Containment *viewcontainment = containmentForId(viewData.id.toUInt());
|
||||||
|
|
||||||
if (viewcontainment) {
|
if (viewcontainment) {
|
||||||
QAction *removeaction = viewcontainment->actions()->action("remove");
|
viewcontainment->setImmutability(Plasma::Types::Mutable);
|
||||||
if (removeaction) {
|
viewcontainment->destroy();
|
||||||
removeaction->trigger();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user