Don't add the tabbar to the layout twice, or try to remove it twice.

BUG: 258867


svn path=/trunk/KDE/kdelibs/; revision=1212395
This commit is contained in:
Alex Merry 2011-01-06 20:33:56 +00:00
parent 244ec458f8
commit 082ddcb95a

View File

@ -561,6 +561,9 @@ void TabBar::setTabBarShown(bool show)
if (!show && !d->tabWidgetMode) { if (!show && !d->tabWidgetMode) {
return; return;
} }
if (d->tabBarShown == show) {
return;
}
d->tabBarShown = show; d->tabBarShown = show;
if (!show) { if (!show) {