From 8cf41341256c903b5c5cf74456a8f601a15de924 Mon Sep 17 00:00:00 2001 From: Uwe Kindler Date: Mon, 6 Jul 2020 08:22:48 +0200 Subject: [PATCH] Some changes to ensure emission of focusedDockWidgetChanged signal --- src/DockFocusController.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/DockFocusController.cpp b/src/DockFocusController.cpp index 9cc93eb..cb282de 100644 --- a/src/DockFocusController.cpp +++ b/src/DockFocusController.cpp @@ -160,11 +160,6 @@ void DockFocusControllerPrivate::updateDockWidgetFocus(CDockWidget* DockWidget) } #endif - if (old == DockWidget) - { - return; - } - if (DockWidget->isVisible()) { emit DockManager->focusedDockWidgetChanged(old, DockWidget); @@ -183,12 +178,9 @@ void CDockFocusController::onDockWidgetVisibilityChanged(bool Visible) { auto Sender = sender(); auto DockWidget = qobject_cast(Sender); - /*qDebug() << "sender: " << Sender->metaObject()->className(); - qDebug() << "onDockWidgetVisibilityChanged " << Sender->objectName() << " Visible " << Visible;*/ disconnect(Sender, SIGNAL(visibilityChanged(bool)), this, SLOT(onDockWidgetVisibilityChanged(bool))); if (DockWidget && Visible) { - //qDebug() << "emit d->DockManager->focusedDockWidgetChanged"; emit d->DockManager->focusedDockWidgetChanged(d->OldFocusedDockWidget, DockWidget); } }