Skip to content

Commit dec170e

Browse files
authored
Don't select a new tab if the tab being closed is not the current tab. (#125)
1 parent 3ffbbfb commit dec170e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/DockWidget.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,12 @@ void DockWidgetPrivate::updateParentDockArea()
173173
return;
174174
}
175175

176+
// we don't need to change the current tab if the
177+
// current dock widget is not the one being closed
178+
if (DockArea->currentDockWidget() != _this){
179+
return;
180+
}
181+
176182
auto NextDockWidget = DockArea->nextOpenDockWidget(_this);
177183
if (NextDockWidget)
178184
{

0 commit comments

Comments
 (0)