summaryrefslogtreecommitdiffstats
path: root/src/gui/painting
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2010-10-12 15:27:30 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2010-10-12 15:27:30 (GMT)
commit9c2522f2e28c2f22b24500b51ed37590666c1f84 (patch)
treeaf3f73b8d1132c6b80e8a40604c49a1866b1afa5 /src/gui/painting
parentac19a3409253f5f74984624b99268212ba74c086 (diff)
parent8f830a429b4dfa56889dda8ec77f67281ca4c4ac (diff)
downloadQt-9c2522f2e28c2f22b24500b51ed37590666c1f84.zip
Qt-9c2522f2e28c2f22b24500b51ed37590666c1f84.tar.gz
Qt-9c2522f2e28c2f22b24500b51ed37590666c1f84.tar.bz2
Merge branch 'qt-master-from-4.7' of scm.dev.nokia.troll.no:qt/qt-integration into master-integration
* 'qt-master-from-4.7' of scm.dev.nokia.troll.no:qt/qt-integration: Add support for Qt::WA_TranslucentBackground with OpenVG on Symbian^3 Crash fix when using the runtime graphics system on Symbian.
Diffstat (limited to 'src/gui/painting')
-rw-r--r--src/gui/painting/qwindowsurface_s60.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gui/painting/qwindowsurface_s60.cpp b/src/gui/painting/qwindowsurface_s60.cpp
index d4dcf7d..eb9eff2 100644
--- a/src/gui/painting/qwindowsurface_s60.cpp
+++ b/src/gui/painting/qwindowsurface_s60.cpp
@@ -102,9 +102,11 @@ QS60WindowSurface::~QS60WindowSurface()
// Issue empty redraw to clear the UI surface
QWidget *w = window();
- RWindow *const window = static_cast<RWindow *>(w->winId()->DrawableWindow());
- window->BeginRedraw();
- window->EndRedraw();
+ if (w->testAttribute(Qt::WA_WState_Created)) {
+ RWindow *const window = static_cast<RWindow *>(w->winId()->DrawableWindow());
+ window->BeginRedraw();
+ window->EndRedraw();
+ }
}
}
#endif