From a06b7f9dcd9ffcd03122b9007208300590afbc5a Mon Sep 17 00:00:00 2001 From: listenerri Date: Fri, 16 Nov 2018 10:49:44 +0800 Subject: [PATCH] fix: dock crash while loading plugins Change-Id: I613fcbf091ad0f45ff3bf25883336f5ba0cd947c --- frame/panel/mainpanel.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/frame/panel/mainpanel.cpp b/frame/panel/mainpanel.cpp index 1789950ba..07ecc4698 100644 --- a/frame/panel/mainpanel.cpp +++ b/frame/panel/mainpanel.cpp @@ -419,7 +419,7 @@ void MainPanel::adjustItemSize() itemType == DockItem::Container) continue; -// QMetaObject::invokeMethod(item, "setVisible", Qt::QueuedConnection, Q_ARG(bool, true)); + QMetaObject::invokeMethod(item, "setVisible", Qt::QueuedConnection, Q_ARG(bool, true)); switch (item->itemType()) { @@ -607,8 +607,6 @@ void MainPanel::itemInserted(const int index, DockItem *item) m_itemLayout->insertWidget(index, item); m_itemAdjustTimer->start(); - - QTimer::singleShot(300, [=] { item->setVisible(true);}); } ///