summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/qtoolbararealayout.cpp
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-08-10 14:15:03 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-08-10 14:16:32 (GMT)
commit9c4ed99ede2de8dae005cef9a6c519e2b561a54f (patch)
tree67a7821f96adc5beaf9362fcffaa16e2eab9273e /src/gui/widgets/qtoolbararealayout.cpp
parenteeb206d41d386d4d3dee1ff2813d132d15f670d0 (diff)
downloadQt-9c4ed99ede2de8dae005cef9a6c519e2b561a54f.zip
Qt-9c4ed99ede2de8dae005cef9a6c519e2b561a54f.tar.gz
Qt-9c4ed99ede2de8dae005cef9a6c519e2b561a54f.tar.bz2
Fixed a possible problem when unplugging a QToolBar
The 'break' statement was misplaced... This was found thanks to coverity
Diffstat (limited to 'src/gui/widgets/qtoolbararealayout.cpp')
-rw-r--r--src/gui/widgets/qtoolbararealayout.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/qtoolbararealayout.cpp b/src/gui/widgets/qtoolbararealayout.cpp
index b4a0ef0..afd526a 100644
--- a/src/gui/widgets/qtoolbararealayout.cpp
+++ b/src/gui/widgets/qtoolbararealayout.cpp
@@ -1156,8 +1156,8 @@ QLayoutItem *QToolBarAreaLayout::unplug(const QList<int> &path, QToolBarAreaLayo
if (!next.skip()) {
newExtraSpace = next.pos - previous.pos - pick(line.o, previous.sizeHint());
previous.resize(line.o, next.pos - previous.pos);
+ break;
}
- break;
}
break;
}