[gthumb] browser: show only IO errors in the message area
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] browser: show only IO errors in the message area
- Date: Sat, 9 Nov 2013 20:01:53 +0000 (UTC)
commit bc9ad8ef9e1395b35b9fc43575290a7c47cc1502
Author: Paolo Bacchilega <paobac src gnome org>
Date: Fri Oct 11 10:32:37 2013 +0200
browser: show only IO errors in the message area
gthumb/gth-browser.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gthumb/gth-browser.c b/gthumb/gth-browser.c
index 6d33008..42cd59d 100644
--- a/gthumb/gth-browser.c
+++ b/gthumb/gth-browser.c
@@ -5238,7 +5238,7 @@ background_task_completed_cb (GthTask *task,
if (error == NULL)
return;
- if (! g_error_matches (error, GTH_TASK_ERROR, GTH_TASK_ERROR_CANCELLED) && ! g_error_matches (error,
G_IO_ERROR, G_IO_ERROR_CANCELLED))
+ if ((error->domain == G_IO_ERROR) && ! g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
_gth_browser_show_error (browser, _("Could not perform the operation"), error);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]