aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2019-04-09 11:19:15 +0200
committerUlf Hermann <ulf.hermann@qt.io>2019-04-09 11:27:04 +0000
commit9cd1f4d6d0d9666c660845dd59e2daf1cd60727c (patch)
tree71f1ac86541022e833274ec6b93c0bc5e92dd0ae
parent5e7818c48c631cafe055faf106e3c553c7fec9b2 (diff)
PerfProfiler: Update the run actions when creating the tool
There might not be a project and therefore, ProjectExplorer might never send the updateRunActions() signal. Fixes: QTCREATORBUG-22256 Change-Id: I2705fb22484b491a7a4985179eb6b5a26a921902 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
-rw-r--r--src/plugins/perfprofiler/perfprofilertool.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/perfprofiler/perfprofilertool.cpp b/src/plugins/perfprofiler/perfprofilertool.cpp
index ff5a171a6f..4feb8b0279 100644
--- a/src/plugins/perfprofiler/perfprofilertool.cpp
+++ b/src/plugins/perfprofiler/perfprofilertool.cpp
@@ -169,6 +169,7 @@ PerfProfilerTool::PerfProfilerTool(QObject *parent) :
m_delayLabel->setProperty("panelwidget", true);
m_perspective.setAboutToActivateCallback([this]() { createViews(); });
+ updateRunActions();
}
void PerfProfilerTool::createViews()