Skip to content

Commit

Permalink
Fix. (#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdademo authored Oct 23, 2020
1 parent 0e3c3ba commit 8f95447
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/DockFocusController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,11 @@ void CDockFocusController::onApplicationFocusChanged(QWidget* focusedOld, QWidge
auto OtherDockWidgetTab = internal::findParent<CDockWidgetTab*>(focusedNow);
if (OtherDockWidgetTab && focusedOld)
{
focusedOld->setFocus();
auto OldFocusedDockWidget = internal::findParent<CDockWidget*>(focusedOld);
if (OldFocusedDockWidget)
{
focusedOld->setFocus();
}
return;
}
}
Expand Down

0 comments on commit 8f95447

Please sign in to comment.