Skip to content

Commit 8f95447

Browse files
authored
Fix. (#264)
1 parent 0e3c3ba commit 8f95447

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/DockFocusController.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,11 @@ void CDockFocusController::onApplicationFocusChanged(QWidget* focusedOld, QWidge
240240
auto OtherDockWidgetTab = internal::findParent<CDockWidgetTab*>(focusedNow);
241241
if (OtherDockWidgetTab && focusedOld)
242242
{
243-
focusedOld->setFocus();
243+
auto OldFocusedDockWidget = internal::findParent<CDockWidget*>(focusedOld);
244+
if (OldFocusedDockWidget)
245+
{
246+
focusedOld->setFocus();
247+
}
244248
return;
245249
}
246250
}

0 commit comments

Comments
 (0)