"The link is broken" dialog with no possibility to trash does not close when clicking on "Cancel"
Affected version
Nautilus 42.1.1 on Arch 64 bit
Steps to reproduce
Create a link that cannot be trashed by the current user, for example you can do that from a terminal with:
sudo mkdir delete_me
sudo ln -s non-existing delete_me/broken_link
And then double click the broken_link
from Nautilus from a non-root user.
The first click is not responsive (and this happens even if the link can be trashed) but the annoying bug is that the dialog does not close neither clicking twice the "Cancel" button. Pressing the Escape keyboard button works.
Current behavior
Dialog cannot be closed clicking on Cancel.
Expected behavior
Dialog closes when clicking on Cancel.
Additional information
The dialog gets created here: https://gitlab.gnome.org/GNOME/nautilus/-/blob/master/src/nautilus-mime-actions.c#L618 and contains a text like: "This link cannot be used because its target "non-existing" doesn’t exist."
Edited by ilario