From 1fe0d5192537c0fcd6105d0aafff3ab2cb218273 Mon Sep 17 00:00:00 2001 From: Neel Patel Date: Mon, 17 Jul 2017 10:14:40 +0100 Subject: [PATCH] Prevent the tab bar being hidden when detached tabs are being closed. Fixes #2558 --- runtime/TabWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/TabWindow.cpp b/runtime/TabWindow.cpp index 5eb8cb9d8..ba499e41b 100644 --- a/runtime/TabWindow.cpp +++ b/runtime/TabWindow.cpp @@ -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); }