aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler/qmlprofilertool.cpp
diff options
context:
space:
mode:
authorJarek Kobus <[email protected]>2024-12-19 13:12:12 +0100
committerJarek Kobus <[email protected]>2024-12-19 14:28:09 +0000
commit50f2c424ad5baa63e8650857c4ac1b72e3c3a564 (patch)
tree8eb7331dfe1125a17b6951b0c875dd3e93b2a45d /src/plugins/qmlprofiler/qmlprofilertool.cpp
parentd22e757532b13e7ad0b5dca0dad1c9a753e575cb (diff)
PE: Return Result from canRunStartupProject()
Simplify usages a bit. Change-Id: I33e4b910437964d64ae18bab87c4f1e33e37f705 Reviewed-by: hjk <[email protected]> Reviewed-by: Christian Kandeler <[email protected]>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilertool.cpp')
-rw-r--r--src/plugins/qmlprofiler/qmlprofilertool.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilertool.cpp b/src/plugins/qmlprofiler/qmlprofilertool.cpp
index e7834d1209e..e729c58c3c8 100644
--- a/src/plugins/qmlprofiler/qmlprofilertool.cpp
+++ b/src/plugins/qmlprofiler/qmlprofilertool.cpp
@@ -345,7 +345,7 @@ void QmlProfilerTool::updateRunActions()
ProjectExplorer::Constants::QML_PROFILER_RUN_MODE);
d->m_startAction->setToolTip(canRun ? Tr::tr("Start QML Profiler analysis.")
: canRun.error());
- d->m_startAction->setEnabled(bool(canRun));
+ d->m_startAction->setEnabled(canRun);
d->m_stopAction->setEnabled(false);
}
}