aboutsummaryrefslogtreecommitdiff
path: root/fiv-browser.c
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2021-12-28 23:47:36 +0100
committerPřemysl Eric Janouch <p@janouch.name>2021-12-28 23:49:35 +0100
commitc49e58a0ba3f4deb09c61f9a487ad57f6b435fe1 (patch)
tree1b8cd884e1ffea621a4efebcf4fdc6da79a76771 /fiv-browser.c
parent98bdab443adfbf4d6ecc485874806016771ddbf6 (diff)
downloadfiv-c49e58a0ba3f4deb09c61f9a487ad57f6b435fe1.tar.gz
fiv-c49e58a0ba3f4deb09c61f9a487ad57f6b435fe1.tar.xz
fiv-c49e58a0ba3f4deb09c61f9a487ad57f6b435fe1.zip
Fix thumbnailing cancellation
Everything's according to GAsyncResult documentation.
Diffstat (limited to 'fiv-browser.c')
-rw-r--r--fiv-browser.c5
1 files changed, 5 insertions, 0 deletions
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);
}