summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@digia.com>2013-01-15 16:20:09 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-01-15 16:41:05 +0100
commitc1b974c611f963c8f46bdea0aada1b7f6565fc56 (patch)
treee61575359f348613e67743fb06271cd4957f249a /examples
parentd3dc0f21225845f404262ea563870044cbbbe53f (diff)
Fix crash in hellowindow example when minimizing.
Task-number: QTBUG-28439 Change-Id: Idcea2712afdbb08b4da2fa230fd8ba6aebd380b7 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/opengl/hellowindow/hellowindow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/opengl/hellowindow/hellowindow.cpp b/examples/opengl/hellowindow/hellowindow.cpp
index b1140c4f1d..998b29b540 100644
--- a/examples/opengl/hellowindow/hellowindow.cpp
+++ b/examples/opengl/hellowindow/hellowindow.cpp
@@ -92,7 +92,8 @@ void HelloWindow::mousePressEvent(QMouseEvent *)
void HelloWindow::render()
{
- emit needRender(this, m_color, size());
+ if (isExposed())
+ emit needRender(this, m_color, size());
}
void HelloWindow::updateColor()