summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorWater-Team <water@pad.test.qt.nokia.com>2011-08-31 23:00:13 (GMT)
committerWater-Team <water@pad.test.qt.nokia.com>2011-08-31 23:00:13 (GMT)
commitaa31031ca88d8db0c1c997d50fb789dbe0cb9b55 (patch)
treec3621fe5240e49fc1c260447b4d3cfbf453f07b6 /src/gui/widgets
parent7fb04c5964e47e71b709a413be7839a3cedbba9e (diff)
parentf14bbde351d90bed520f9503500f922f7aa18c92 (diff)
downloadQt-aa31031ca88d8db0c1c997d50fb789dbe0cb9b55.zip
Qt-aa31031ca88d8db0c1c997d50fb789dbe0cb9b55.tar.gz
Qt-aa31031ca88d8db0c1c997d50fb789dbe0cb9b55.tar.bz2
Merge branch '4.8-upstream' into master-water
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/qtabbar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/qtabbar.cpp b/src/gui/widgets/qtabbar.cpp
index 16e4aad..8faf156 100644
--- a/src/gui/widgets/qtabbar.cpp
+++ b/src/gui/widgets/qtabbar.cpp
@@ -171,7 +171,7 @@ void QTabBar::initStyleOption(QStyleOptionTab *option, int tabIndex) const
if (tabIndex > 0 && tabIndex - 1 == d->currentIndex)
option->selectedPosition = QStyleOptionTab::PreviousIsSelected;
- else if (tabIndex < totalTabs - 1 && tabIndex + 1 == d->currentIndex)
+ else if (tabIndex + 1 < totalTabs && tabIndex + 1 == d->currentIndex)
option->selectedPosition = QStyleOptionTab::NextIsSelected;
else
option->selectedPosition = QStyleOptionTab::NotAdjacent;