summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@digia.com>2013-08-22 10:06:33 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-08-22 16:44:37 +0200
commit4e043026725b1dfd201bf432bdd0b28ba8867196 (patch)
tree054ad36697d9ad04a2304e6d9513cde2f46cc4ec
parent8a96679493bcb5e508cf438d6d6f18d0db7a43cc (diff)
Check for window handle in QBackingStore::flush().
Task-number: QTBUG-33062 Change-Id: Iab4ccc3a2a855ee7f6964659b53b3401af436212 Reviewed-by: Andy Shaw <andy.shaw@digia.com>
-rw-r--r--src/gui/painting/qbackingstore.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/painting/qbackingstore.cpp b/src/gui/painting/qbackingstore.cpp
index edb5f66c5b..c1f7c6c738 100644
--- a/src/gui/painting/qbackingstore.cpp
+++ b/src/gui/painting/qbackingstore.cpp
@@ -97,6 +97,11 @@ void QBackingStore::flush(const QRegion &region, QWindow *win, const QPoint &off
{
if (!win)
win = window();
+ if (!win->handle()) {
+ qWarning() << "QBackingStore::flush() called for "
+ << win << " which does not have a handle.";
+ return;
+ }
#ifdef QBACKINGSTORE_DEBUG
if (win && win->isTopLevel() && !qt_window_private(win)->receivedExpose) {