From 8683a6241974ac1ce6b3f53d09567bd0cd90419c Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Mon, 26 Jan 2015 11:44:49 +0200 Subject: [PATCH] ProjectExplorer: Fix Collapse All action The action was triggered after the focused widget was reset. Change-Id: I093d827472fa608649f98ac1339e957532965c0d Reviewed-by: hjk --- src/plugins/projectexplorer/projecttree.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/projectexplorer/projecttree.cpp b/src/plugins/projectexplorer/projecttree.cpp index 24042850e6c..1fc8c525ba1 100644 --- a/src/plugins/projectexplorer/projecttree.cpp +++ b/src/plugins/projectexplorer/projecttree.cpp @@ -482,7 +482,7 @@ void ProjectTree::showContextMenu(ProjectTreeWidget *focus, const QPoint &global s_instance->m_focusForContextMenu = focus; connect(contextMenu, &QMenu::aboutToHide, s_instance, &ProjectTree::hideContextMenu, - Qt::UniqueConnection); + Qt::ConnectionType(Qt::UniqueConnection | Qt::QueuedConnection)); } }