Commit 8a84ce4a authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

IdealController::showDock: query action list once, not twice

GIT_SILENT
parent c6effc84
......@@ -420,8 +420,9 @@ void IdealController::showDock(Qt::DockWidgetArea area, bool show)
return;
}
if (!barForDockArea(area)->actions().isEmpty())
barForDockArea(area)->actions().first()->setChecked(show);
const auto barActions = bar->actions();
if (!barActions.isEmpty())
barActions.first()->setChecked(show);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment