diff --git a/src/plugins/qmlprofiler/flamegraphview.cpp b/src/plugins/qmlprofiler/flamegraphview.cpp index 618c632292c..24403ab72b6 100644 --- a/src/plugins/qmlprofiler/flamegraphview.cpp +++ b/src/plugins/qmlprofiler/flamegraphview.cpp @@ -91,8 +91,7 @@ void FlameGraphView::contextMenuEvent(QContextMenuEvent *ev) menu.addActions(QmlProfilerTool::profilerContextMenuActions()); menu.addSeparator(); QAction *getGlobalStatsAction = menu.addAction(tr("Show Full Range")); - if (!m_model->modelManager()->isRestrictedToRange()) - getGlobalStatsAction->setEnabled(false); + getGlobalStatsAction->setEnabled(m_model->modelManager()->isRestrictedToRange()); QAction *resetAction = menu.addAction(tr("Reset Flame Graph")); resetAction->setEnabled(m_content->rootObject()->property("zoomed").toBool());