don't call setCurrentIdex a second time by calling

d->tabProxy->native->setCurrentIndex(index) too early

svn path=/trunk/KDE/kdelibs/; revision=905666
This commit is contained in:
Marco Martin 2009-01-04 20:04:37 +00:00
parent 35304c269d
commit a2fe3d80af

View File

@ -288,7 +288,6 @@ void TabBar::setCurrentIndex(int index)
return;
}
d->tabProxy->native->setCurrentIndex(index);
d->tabWidgetLayout->removeAt(1);
d->oldPage = d->pages[d->currentIndex];
@ -347,6 +346,7 @@ void TabBar::setCurrentIndex(int index)
#endif
d->currentIndex = index;
emit currentChanged(index);
d->tabProxy->native->setCurrentIndex(index);
}
int TabBar::count() const