From c49e58a0ba3f4deb09c61f9a487ad57f6b435fe1 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Tue, 28 Dec 2021 23:47:36 +0100 Subject: Fix thumbnailing cancellation Everything's according to GAsyncResult documentation. --- fiv-browser.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fiv-browser.c b/fiv-browser.c index 0ef212e..8296e67 100644 --- a/fiv-browser.c +++ b/fiv-browser.c @@ -465,6 +465,11 @@ on_thumbnailer_ready(GObject *object, GAsyncResult *res, gpointer user_data) FivBrowser *self = FIV_BROWSER(user_data); GError *error = NULL; if (!g_subprocess_wait_check_finish(subprocess, res, &error)) { + if (g_error_matches(error, G_IO_ERROR, G_IO_ERROR_CANCELLED)) { + g_error_free(error); + return; + } + g_warning("%s", error->message); g_error_free(error); } -- cgit v1.2.3-70-g09d2