Skip to content
Verified Commit 7cfe7988 authored by Luca Beltrame's avatar Luca Beltrame
Browse files

Fix crash when in X11

a281dfdf removed the check on whether
the application was under Wayland or not, unconditionally creating a
connection. Thus, on X11,
KWayland::Client::ConnectionThread::fromApplication would return a null
pointer, crashing the application at m_registry->create(connection).

Thus, check the connection before going further. This prevents
xdg-desktop-portal-kde from crashing under X11.

CCMAIL: aleixpol@kde.org
parent a281dfdf
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