mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-26 16:01:36 +08:00
Don't select a new tab if the tab being closed is not the current tab. (#125)
This commit is contained in:
parent
3ffbbfb6d0
commit
dec170ed24
@ -173,6 +173,12 @@ void DockWidgetPrivate::updateParentDockArea()
|
|||||||
return;
|
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);
|
auto NextDockWidget = DockArea->nextOpenDockWidget(_this);
|
||||||
if (NextDockWidget)
|
if (NextDockWidget)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user