Prevent the tab bar being hidden when detached tabs are being closed. Fixes #2558

REL-1_X
Neel Patel 2017-07-17 10:14:40 +01:00 committed by Dave Page
parent 07aa74eaf5
commit 1fe0d51925
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}