|
|
|
@ -695,11 +695,15 @@ bool DockView::event(QEvent *e)
|
|
|
|
|
{
|
|
|
|
|
emit eventTriggered(e);
|
|
|
|
|
|
|
|
|
|
if (e->type() == QEvent::Leave) {
|
|
|
|
|
//Important! this code creates a crash when there are two docks
|
|
|
|
|
//running and the user clicks the Quit button, it is also
|
|
|
|
|
//suspicious for some rare cases when removing a dock and the
|
|
|
|
|
//dock is deleted after the 1min time limit of plasma
|
|
|
|
|
/*if (e->type() == QEvent::Leave) {
|
|
|
|
|
engine()->collectGarbage();
|
|
|
|
|
engine()->clearComponentCache();
|
|
|
|
|
engine()->trimComponentCache();
|
|
|
|
|
}
|
|
|
|
|
}*/
|
|
|
|
|
|
|
|
|
|
return ContainmentView::event(e);
|
|
|
|
|
}
|
|
|
|
|