Prevent the tab bar being hidden when detached tabs are being closed. Fixes #2558
parent
07aa74eaf5
commit
1fe0d51925
|
@ -232,7 +232,7 @@ void DockTabWidget::dockClosetabs()
|
|||
// Check if main pgAdmin4 application has only one tab then close tab bar.
|
||||
// Here - check for count 2 because tab will be deleted later.
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue