Commit a27658e9 authored by Marius Vlad's avatar Marius Vlad

desktop-shell: Do not try to add a child to a non-existent parent

Introduced with a8da2084, it seems that there are cases when there's no
parent available (zenity, for instance).

Removes any potential child and re-initialize it, in case the parent is
not set. (Simon Ser)

Fixes: #340
Signed-off-by: Marius Vlad's avatarMarius Vlad <marius.vlad@collabora.com>
Reviewed-by: Simon Ser's avatarSimon Ser <contact@emersion.fr>
Reported-by: n3rdopolis's avatarn3rdopolis <bluescreenavenger@gmail.com>
parent c3c0b247
Pipeline #98387 passed with stages
in 1 minute and 22 seconds