Skip to content

Commit aeb0a27

Browse files
Improved code documentation
1 parent 50e3ef3 commit aeb0a27

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/DockFocusController.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,9 @@ void CDockFocusController::onApplicationFocusChanged(QWidget* focusedOld, QWidge
226226
}
227227

228228
// If the close button in another tab steals the focus from the current
229-
// active dock widget content, then we giv it back immediately
229+
// active dock widget content, i.e. if the user clicks its close button,
230+
// then we immediately give the focus back to the previous focused widget
231+
// focusedOld
230232
if (CDockManager::testConfigFlag(CDockManager::AllTabsHaveCloseButton))
231233
{
232234
auto OtherDockWidgetTab = internal::findParent<CDockWidgetTab*>(focusedNow);

0 commit comments

Comments
 (0)