Don't select a new tab if the tab being closed is not the current tab. (#125)
This commit is contained in:
@@ -173,6 +173,12 @@ void DockWidgetPrivate::updateParentDockArea()
|
||||
return;
|
||||
}
|
||||
|
||||
// we don't need to change the current tab if the
|
||||
// current dock widget is not the one being closed
|
||||
if (DockArea->currentDockWidget() != _this){
|
||||
return;
|
||||
}
|
||||
|
||||
auto NextDockWidget = DockArea->nextOpenDockWidget(_this);
|
||||
if (NextDockWidget)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user