unbreak when the tabbar is hidden

svn path=/trunk/KDE/kdelibs/; revision=1060780
This commit is contained in:
Marco Martin 2009-12-09 21:24:58 +00:00
parent 92d3cdc0a3
commit eb13d0f4cd

View File

@ -332,14 +332,14 @@ void TabBar::setCurrentIndex(int index)
return;
}
d->tabWidgetLayout->removeAt(1);
if (d->currentIndex >= 0) {
d->oldPage = d->pages[d->currentIndex];
} else {
d->oldPage = 0;
}
d->tabWidgetLayout->removeItem(d->oldPage);
if (index >= 0) {
d->newPage = d->pages[index];
} else {