Fix tabbar with only a single tab not hidden anymore when minimizing to tray at startup

This commit is contained in:
Janek Bevendorff 2017-02-14 19:17:35 +01:00
parent fed210dc38
commit 9b211928a9

View File

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