qt: fix crash when undocking playlist on Wayland + optimization elsewhere