unbreak when the tabbar is hidden
svn path=/trunk/KDE/kdelibs/; revision=1060780
This commit is contained in:
parent
92d3cdc0a3
commit
eb13d0f4cd
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user