From bedd25021c36819cb6bc5e888e3e0701da23af79 Mon Sep 17 00:00:00 2001 From: Uwe Kindler Date: Fri, 17 Jun 2022 08:31:24 +0200 Subject: [PATCH] Fixed issue #429 - Raise floating widget on toggleView() request --- src/DockWidget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/DockWidget.cpp b/src/DockWidget.cpp index c1b5206..e4b94d8 100644 --- a/src/DockWidget.cpp +++ b/src/DockWidget.cpp @@ -555,6 +555,7 @@ void CDockWidget::toggleView(bool Open) { Open = true; } + // If the dock widget state is different, then we really need to toggle // the state. If we are in the right state, then we simply make this // dock widget the current dock widget @@ -564,7 +565,7 @@ void CDockWidget::toggleView(bool Open) } else if (Open && d->DockArea) { - d->DockArea->setCurrentDockWidget(this); + raise(); } }