From 0889d2224d4ad3e22cb52432556d1008e22f52d0 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Mon, 3 Jul 2017 12:12:28 +0300 Subject: [PATCH] cleanup unload() corona function --- app/dockcorona.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/app/dockcorona.cpp b/app/dockcorona.cpp index 8326fbb22..668bb1eec 100644 --- a/app/dockcorona.cpp +++ b/app/dockcorona.cpp @@ -181,19 +181,11 @@ void DockCorona::unload() { qDebug() << "unload: removing dockViews and containments..."; - //foreach (auto cont, containments()) { - //dockContainmentDestroyed(cont); - // } - while (!containments().isEmpty()) { //deleting a containment will remove it from the list due to QObject::destroyed connect in Corona //this form doesn't crash, while qDeleteAll(containments()) does delete containments().first(); } - - /*qDeleteAll(m_dockViews); - m_dockViews.clear(); - m_waitingDockViews.clear();*/ } bool DockCorona::reloadLayout(QString path)