Fix crash in hellowindow example when minimizing.

Task-number: QTBUG-28439

Change-Id: Idcea2712afdbb08b4da2fa230fd8ba6aebd380b7
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
This commit is contained in:
Friedemann Kleint 2013-01-15 16:20:09 +01:00 committed by The Qt Project
parent d3dc0f2122
commit c1b974c611

View File

@ -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()