From 2d950574345842f6c834c7bb4196571f47b460b1 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Wed, 26 Oct 2016 13:34:44 +0200 Subject: [PATCH] QmlProfiler: Open load and save dialogs deferred This works around QTBUG-56746, by decoupling the dialog from the context menu. Change-Id: I2f13b01003a10598e6f69b14bb7eb8e9141acad8 Task-number: QTCREATORBUG-17149 Reviewed-by: Christian Stenger --- src/plugins/qmlprofiler/qmlprofilertool.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/qmlprofiler/qmlprofilertool.cpp b/src/plugins/qmlprofiler/qmlprofilertool.cpp index 83970db1956..72498a20d81 100644 --- a/src/plugins/qmlprofiler/qmlprofilertool.cpp +++ b/src/plugins/qmlprofiler/qmlprofilertool.cpp @@ -169,13 +169,13 @@ QmlProfilerTool::QmlProfilerTool(QObject *parent) QAction *act = d->m_loadQmlTrace = new QAction(tr("Load QML Trace"), options); command = ActionManager::registerAction(act, Constants::QmlProfilerLoadActionId); - connect(act, &QAction::triggered, this, &QmlProfilerTool::showLoadDialog); + connect(act, &QAction::triggered, this, &QmlProfilerTool::showLoadDialog, Qt::QueuedConnection); options->addAction(command); act = d->m_saveQmlTrace = new QAction(tr("Save QML Trace"), options); d->m_saveQmlTrace->setEnabled(false); command = ActionManager::registerAction(act, Constants::QmlProfilerSaveActionId); - connect(act, &QAction::triggered, this, &QmlProfilerTool::showSaveDialog); + connect(act, &QAction::triggered, this, &QmlProfilerTool::showSaveDialog, Qt::QueuedConnection); options->addAction(command); d->m_recordingTimer.setInterval(100);