diff options
author | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-06-04 09:56:40 (GMT) |
---|---|---|
committer | Andreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com> | 2009-06-09 07:34:05 (GMT) |
commit | 98f197d1a11c3dd13959967534b1dba7eea479ea (patch) | |
tree | 048d2fc23f91794e32dd93beaef3b7f7343fceca /src/gui/graphicsview | |
parent | 4f3a8e82fd6b328a06990517648f0d46c50ff41e (diff) | |
download | Qt-98f197d1a11c3dd13959967534b1dba7eea479ea.zip Qt-98f197d1a11c3dd13959967534b1dba7eea479ea.tar.gz Qt-98f197d1a11c3dd13959967534b1dba7eea479ea.tar.bz2 |
Avoid falling in the else case when there are no views.
Partially fixes tst_QGraphicsScene::update failure.
Diffstat (limited to 'src/gui/graphicsview')
-rw-r--r-- | src/gui/graphicsview/qgraphicsscene.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/graphicsview/qgraphicsscene.cpp b/src/gui/graphicsview/qgraphicsscene.cpp index 6a79dde..df3153f 100644 --- a/src/gui/graphicsview/qgraphicsscene.cpp +++ b/src/gui/graphicsview/qgraphicsscene.cpp @@ -601,7 +601,7 @@ void QGraphicsScenePrivate::_q_emitUpdated() // the optimization that items send updates directly to the views, but it // needs to happen in order to keep compatibility with the behavior from // Qt 4.4 and backward. - if (!views.isEmpty() && (connectedSignals & changedSignalMask)) { + if (connectedSignals & changedSignalMask) { for (int i = 0; i < views.size(); ++i) { QGraphicsView *view = views.at(i); if (!view->d_func()->connectedToScene) { |