mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-25 07:31:33 +08:00
Fix. (#264)
This commit is contained in:
parent
0e3c3bab45
commit
8f95447108
@ -240,7 +240,11 @@ void CDockFocusController::onApplicationFocusChanged(QWidget* focusedOld, QWidge
|
|||||||
auto OtherDockWidgetTab = internal::findParent<CDockWidgetTab*>(focusedNow);
|
auto OtherDockWidgetTab = internal::findParent<CDockWidgetTab*>(focusedNow);
|
||||||
if (OtherDockWidgetTab && focusedOld)
|
if (OtherDockWidgetTab && focusedOld)
|
||||||
{
|
{
|
||||||
focusedOld->setFocus();
|
auto OldFocusedDockWidget = internal::findParent<CDockWidget*>(focusedOld);
|
||||||
|
if (OldFocusedDockWidget)
|
||||||
|
{
|
||||||
|
focusedOld->setFocus();
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user