Commit 996a3f8a authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

IdealController::showDock: use explicitly true, value of var show is known

GIT_SILENT
parent 8a84ce4a
......@@ -414,7 +414,7 @@ void IdealController::showDock(Qt::DockWidgetArea area, bool show)
// open the last opened tool view (or the first one) and focus it
if (lastDock) {
if (QAction *action = m_dockwidget_to_action.value(lastDock))
action->setChecked(show);
action->setChecked(true);
lastDock->setFocus(Qt::ShortcutFocusReason);
return;
......@@ -422,7 +422,7 @@ void IdealController::showDock(Qt::DockWidgetArea area, bool show)
const auto barActions = bar->actions();
if (!barActions.isEmpty())
barActions.first()->setChecked(show);
barActions.first()->setChecked(true);
}
}
......
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