fix #218,reenable garbage collect and trim cache

--the clear component cache was disabled because on
exit it creates crashes when 2 and more docks are
running
pull/1/head
Michail Vourlakos 8 years ago
parent c510c74cc5
commit d2e8dd7881

@ -751,15 +751,15 @@ bool DockView::event(QEvent *e)
{ {
emit eventTriggered(e); emit eventTriggered(e);
//Important! this code creates a crash when there are two docks if (e->type() == QEvent::Leave) {
//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()->collectGarbage();
engine()->clearComponentCache();
engine()->trimComponentCache(); engine()->trimComponentCache();
}*/ //! 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
//! engine()->clearComponentCache();
}
return ContainmentView::event(e); return ContainmentView::event(e);
} }

Loading…
Cancel
Save