From dcb07886edbf9cbc90b4b6148db28f72ebd5bcff Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Tue, 11 Apr 2017 10:07:14 +0300 Subject: [PATCH] remove clearing cache --this code was suspicious for crashes --- app/dockview.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/app/dockview.cpp b/app/dockview.cpp index 289dcc960..7b2c58fc5 100644 --- a/app/dockview.cpp +++ b/app/dockview.cpp @@ -1041,16 +1041,6 @@ bool DockView::event(QEvent *e) { emit eventTriggered(e); - if (e->type() == QEvent::Leave) { - engine()->collectGarbage(); - 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); }