From 9b211928a90d3ae3504d5a505bfc3c496334ad20 Mon Sep 17 00:00:00 2001 From: Janek Bevendorff Date: Tue, 14 Feb 2017 19:17:35 +0100 Subject: [PATCH] Fix tabbar with only a single tab not hidden anymore when minimizing to tray at startup --- src/gui/DatabaseTabWidget.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/gui/DatabaseTabWidget.cpp b/src/gui/DatabaseTabWidget.cpp index fed4535bb..34f065956 100644 --- a/src/gui/DatabaseTabWidget.cpp +++ b/src/gui/DatabaseTabWidget.cpp @@ -77,14 +77,9 @@ DatabaseTabWidget::~DatabaseTabWidget() void DatabaseTabWidget::toggleTabbar() { if (count() > 1) { - if (!tabBar()->isVisible()) { - tabBar()->show(); - } - } - else { - if (tabBar()->isVisible()) { - tabBar()->hide(); - } + tabBar()->show(); + } else { + tabBar()->hide(); } }