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:
parent
d3dc0f2122
commit
c1b974c611
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user