diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2019-06-25 14:31:27 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2019-06-25 14:06:52 +0000 |
commit | 29e92e4dda540aea4629219314f6841f6ef06353 (patch) | |
tree | d79cfd5988b4344f69e3d382169bc2a461db0fda /src/plugins/perfprofiler | |
parent | d97e677be477e8f80acf0eff91e761443e129a61 (diff) | |
download | qt-creator-29e92e4dda540aea4629219314f6841f6ef06353.tar.gz |
PerfProfiler: Connect the updateRunActions() signal earlier
The startup project can get enabled before we create the views. In that
case we miss an update and the run button stays disabled.
Fixes: QTCREATORBUG-22616
Change-Id: I5af9075a4899a5dd0e5f69c13348510cde47285d
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/perfprofiler')
-rw-r--r-- | src/plugins/perfprofiler/perfprofilertool.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/perfprofiler/perfprofilertool.cpp b/src/plugins/perfprofiler/perfprofilertool.cpp index 5af097a9ec..bb71f925da 100644 --- a/src/plugins/perfprofiler/perfprofilertool.cpp +++ b/src/plugins/perfprofiler/perfprofilertool.cpp @@ -157,6 +157,9 @@ PerfProfilerTool::PerfProfilerTool() tracePointsAction->setEnabled(m_startAction->isEnabled()); }); + connect(ProjectExplorerPlugin::instance(), &ProjectExplorerPlugin::updateRunActions, + this, &PerfProfilerTool::updateRunActions); + m_recordButton = new QToolButton; m_clearButton = new QToolButton; m_filterButton = new QToolButton; @@ -341,9 +344,6 @@ void PerfProfilerTool::createViews() menu1->exec(m_flameGraphView->mapToGlobal(pos)); }); - connect(ProjectExplorerPlugin::instance(), &ProjectExplorerPlugin::updateRunActions, - this, &PerfProfilerTool::updateRunActions); - m_perspective.addToolBarAction(m_startAction); m_perspective.addToolBarAction(m_stopAction); m_perspective.addToolBarWidget(m_recordButton); |