diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-08-10 14:15:03 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-08-10 14:16:32 (GMT) |
commit | 9c4ed99ede2de8dae005cef9a6c519e2b561a54f (patch) | |
tree | 67a7821f96adc5beaf9362fcffaa16e2eab9273e | |
parent | eeb206d41d386d4d3dee1ff2813d132d15f670d0 (diff) | |
download | Qt-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
-rw-r--r-- | src/gui/widgets/qtoolbararealayout.cpp | 2 |
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; } |