forked from qt-creator/qt-creator
use QueuedConnection for safety
This commit is contained in:
@@ -158,7 +158,8 @@ void FancyActionBar::insertAction(int index, QAction *action, QMenu *menu)
|
|||||||
|
|
||||||
// execute action also if a context menu item is select
|
// execute action also if a context menu item is select
|
||||||
connect(toolButton, SIGNAL(triggered(QAction*)),
|
connect(toolButton, SIGNAL(triggered(QAction*)),
|
||||||
this, SLOT(toolButtonContextMenuActionTriggered(QAction*)));
|
this, SLOT(toolButtonContextMenuActionTriggered(QAction*)),
|
||||||
|
Qt::QueuedConnection);
|
||||||
}
|
}
|
||||||
m_actionsLayout->insertWidget(index, toolButton);
|
m_actionsLayout->insertWidget(index, toolButton);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user