Skip to content

Commit 8cf4134

Browse files
Some changes to ensure emission of focusedDockWidgetChanged signal
1 parent ef5b22c commit 8cf4134

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/DockFocusController.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,6 @@ void DockFocusControllerPrivate::updateDockWidgetFocus(CDockWidget* DockWidget)
160160
}
161161
#endif
162162

163-
if (old == DockWidget)
164-
{
165-
return;
166-
}
167-
168163
if (DockWidget->isVisible())
169164
{
170165
emit DockManager->focusedDockWidgetChanged(old, DockWidget);
@@ -183,12 +178,9 @@ void CDockFocusController::onDockWidgetVisibilityChanged(bool Visible)
183178
{
184179
auto Sender = sender();
185180
auto DockWidget = qobject_cast<ads::CDockWidget*>(Sender);
186-
/*qDebug() << "sender: " << Sender->metaObject()->className();
187-
qDebug() << "onDockWidgetVisibilityChanged " << Sender->objectName() << " Visible " << Visible;*/
188181
disconnect(Sender, SIGNAL(visibilityChanged(bool)), this, SLOT(onDockWidgetVisibilityChanged(bool)));
189182
if (DockWidget && Visible)
190183
{
191-
//qDebug() << "emit d->DockManager->focusedDockWidgetChanged";
192184
emit d->DockManager->focusedDockWidgetChanged(d->OldFocusedDockWidget, DockWidget);
193185
}
194186
}

0 commit comments

Comments
 (0)