mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-09-03 20:52:57 -05:00
Prevent the tab bar being hidden when detached tabs are being closed. Fixes #2558
This commit is contained in:
@@ -232,7 +232,7 @@ void DockTabWidget::dockClosetabs()
|
|||||||
// Check if main pgAdmin4 application has only one tab then close tab bar.
|
// Check if main pgAdmin4 application has only one tab then close tab bar.
|
||||||
// Here - check for count 2 because tab will be deleted later.
|
// Here - check for count 2 because tab will be deleted later.
|
||||||
DockTabWidget *mainTab = DockTabWidget::getMainTabWidget();
|
DockTabWidget *mainTab = DockTabWidget::getMainTabWidget();
|
||||||
if (mainTab != NULL && mainTab->count() == 2)
|
if (mainTab != NULL && l_tab_widget != NULL && l_tab_widget == mainTab && mainTab->count() == 2)
|
||||||
mainTab->tabBar()->setVisible(false);
|
mainTab->tabBar()->setVisible(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user