Commit e6a813c7 authored by Jan Kundrát's avatar Jan Kundrát
Browse files

Do not return null Display or Connection when there are no screens


This is a followup change for recent changes in QtGui which now handles a
situation where there are no outputs, and hence a nullptr QScreen comes
haunting us.

Thanks to Martin Gräßlin for pointing out where the problem is, and to Richard
Moore for explaining how to fix it.

Change-Id: I8f70c7a0b232073d4edb55b29eb19dae9fc09413
Reviewed-by: default avatarRichard J. Moore <rich@kde.org>
Reviewed-by: default avatarShawn Rutledge <shawn.rutledge@digia.com>
parent fbbd39ea
Showing with 2 additions and 2 deletions
Supports Markdown
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