Skip to content

Commit

Permalink
fix: dock crash while loading plugins
Browse files Browse the repository at this point in the history
Change-Id: I613fcbf091ad0f45ff3bf25883336f5ba0cd947c
  • Loading branch information
listenerri committed Nov 16, 2018
1 parent ca08567 commit a06b7f9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions frame/panel/mainpanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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())
{
Expand Down Expand Up @@ -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);});
}

///
Expand Down

0 comments on commit a06b7f9

Please sign in to comment.