Simplify an if-else statement in the tabbar - d->tabBarShown makes the else if condition obsolete

svn path=/trunk/KDE/kdelibs/; revision=1212398
This commit is contained in:
Alex Merry 2011-01-06 20:50:09 +00:00
parent 082ddcb95a
commit 54ad0622e7

View File

@ -569,7 +569,7 @@ void TabBar::setTabBarShown(bool show)
if (!show) {
d->tabProxy->hide();
d->tabWidgetLayout->removeItem(d->tabBarLayout);
} else if (show && !d->tabProxy->isVisible()) {
} else {
d->tabProxy->show();
d->tabWidgetLayout->insertItem(0, d->tabBarLayout);
}