use QueuedConnection for safety

This commit is contained in:
mae
2009-08-20 19:02:53 +02:00
parent 79bdbfa965
commit d3642a54b2

View File

@@ -158,7 +158,8 @@ void FancyActionBar::insertAction(int index, QAction *action, QMenu *menu)
// execute action also if a context menu item is select
connect(toolButton, SIGNAL(triggered(QAction*)),
this, SLOT(toolButtonContextMenuActionTriggered(QAction*)));
this, SLOT(toolButtonContextMenuActionTriggered(QAction*)),
Qt::QueuedConnection);
}
m_actionsLayout->insertWidget(index, toolButton);
}