Commit e79f008a authored by Laszlo Agocs's avatar Laszlo Agocs
Browse files

Avoid crashing in QOpenGLWidget::metrics


When creating child widgets in the derived class' constructor, the screen
cannot be retrieved via window() since it still returns null. Handle this
case properly.

Change-Id: I65bf7f9c338ce8a3ddab8ad7886cfe2f1f253c82
Reviewed-by: default avatarGunnar Sletta <gunnar.sletta@jollamobile.com>
parent 1b1dd224
No related merge requests found
Showing with 2 additions and 1 deletion
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment