This commit is contained in:
Nick D'Ademo 2020-10-24 03:00:33 +08:00 committed by GitHub
parent 0e3c3bab45
commit 8f95447108
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -239,8 +239,12 @@ void CDockFocusController::onApplicationFocusChanged(QWidget* focusedOld, QWidge
{ {
auto OtherDockWidgetTab = internal::findParent<CDockWidgetTab*>(focusedNow); auto OtherDockWidgetTab = internal::findParent<CDockWidgetTab*>(focusedNow);
if (OtherDockWidgetTab && focusedOld) if (OtherDockWidgetTab && focusedOld)
{
auto OldFocusedDockWidget = internal::findParent<CDockWidget*>(focusedOld);
if (OldFocusedDockWidget)
{ {
focusedOld->setFocus(); focusedOld->setFocus();
}
return; return;
} }
} }