off by one, crash--
svn path=/trunk/KDE/kdelibs/; revision=1026750
This commit is contained in:
parent
304469cb0a
commit
b16ed00bc4
@ -318,7 +318,7 @@ void TabBar::resizeEvent(QGraphicsSceneResizeEvent * event)
|
||||
|
||||
void TabBar::setCurrentIndex(int index)
|
||||
{
|
||||
if (index > d->tabProxy->native->count() ||
|
||||
if (index >= d->tabProxy->native->count() ||
|
||||
d->tabProxy->native->count() <= 1 ||
|
||||
d->currentIndex == index) {
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user