From d3642a54b26d1416e6ccd87b349e89b191c7c258 Mon Sep 17 00:00:00 2001
From: mae <qt-info@nokia.com>
Date: Thu, 20 Aug 2009 19:02:53 +0200
Subject: [PATCH] use QueuedConnection for safety

---
 src/plugins/coreplugin/fancyactionbar.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/plugins/coreplugin/fancyactionbar.cpp b/src/plugins/coreplugin/fancyactionbar.cpp
index fedbc0cf3b9..be053c171f9 100644
--- a/src/plugins/coreplugin/fancyactionbar.cpp
+++ b/src/plugins/coreplugin/fancyactionbar.cpp
@@ -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);
 }
-- 
GitLab