summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicsscene.cpp
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2011-09-23 12:12:38 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2011-09-23 12:12:38 (GMT)
commit3ddab0c939ded21ed530dff685f6a0d491457065 (patch)
treeb48599d06403500217b41b2d1f30ef8353649fa9 /src/gui/graphicsview/qgraphicsscene.cpp
parentfe9c071ac33673fa4e8c94ef3dfc27dbf1f36d06 (diff)
parent6a8a3f7f8171bb56bc5ff5a5f503213180e6465f (diff)
downloadQt-3ddab0c939ded21ed530dff685f6a0d491457065.zip
Qt-3ddab0c939ded21ed530dff685f6a0d491457065.tar.gz
Qt-3ddab0c939ded21ed530dff685f6a0d491457065.tar.bz2
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qt-releng-team
* 'master' of git://scm.dev.nokia.troll.no/qt/qt-releng-team: (84 commits) Disabled activeqt/webbrowser example from mingw build. Fix broken Solaris build (getpwnam_r usage) Sentences should end with a period! (Poor man's rebuild trigger.) Workaround MSVC2010 problems when linking QtWebKit dos2unix on a webkit source file (fix support for Visual Studio) Update changelog for Qt 4.8 add 4.8 changes created/merged by me Fixed automatic plugin path resolving for predefined Qt plugins. Resolve a number of compilation issues with INTEGRITY runonphone: Include USB serial ports on OS X for CODA, too Update changelog for Qt 4.8.0 Fix compile issue when building with QT_NO_CONCURRENT and QT_NO_FUTURE Update changelog for Qt 4.8 QGraphicsWidget::setLayoutDirection doesn't propagate to new children Update changelog for Qt 4.8 Prevent unnecessary graphics item updates when graphics effect changes. Updated change-log for 4.8 Update changes file for 4.8.0 Update changelog for Qt 4.8 runonphone: Implement traceswitch support for coda ...
Diffstat (limited to 'src/gui/graphicsview/qgraphicsscene.cpp')
-rw-r--r--src/gui/graphicsview/qgraphicsscene.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/graphicsview/qgraphicsscene.cpp b/src/gui/graphicsview/qgraphicsscene.cpp
index 1551944..867880c 100644
--- a/src/gui/graphicsview/qgraphicsscene.cpp
+++ b/src/gui/graphicsview/qgraphicsscene.cpp
@@ -3504,7 +3504,9 @@ bool QGraphicsScene::event(QEvent *event)
}
break;
case QEvent::WindowDeactivate:
- if (!--d->activationRefCount) {
+ if (d->activationRefCount > 0)
+ --d->activationRefCount;
+ if (!d->activationRefCount) {
if (d->activePanel) {
// Deactivate the active panel (but keep it so we can
// reactivate it later).