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:
parent
082ddcb95a
commit
54ad0622e7
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user