pathbar: Fail setting the path on cancellation
authorOlivier Crête <olivier.crete@collabora.com>
Wed, 17 May 2023 00:08:34 +0000 (01:08 +0100)
committerOlivier Crête <olivier.crete@collabora.com>
Wed, 17 May 2023 00:10:23 +0000 (01:10 +0100)
commit22cd3ea2683f2fee9a7c2bb1ebc6be619153add2
treeda6ba655be9bbccdbb20a5b654a64697c7a7f4cd
parentd517b25ea3eed3bafbd6e76ab1a2622c82ac7488
pathbar: Fail setting the path on cancellation

The cancellation path already clears the GCancellable, if we let it
continue, it causes a later assertion, so just exit early in this case
and hope a new path has been set.

Fixes: #5792
gtk/gtkpathbar.c