[nautilus/sam/tracker-3: 2/11] tag-manager: Fix checks for cancellation
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/sam/tracker-3: 2/11] tag-manager: Fix checks for cancellation
- Date: Thu, 30 Jul 2020 19:50:00 +0000 (UTC)
commit 9f8a0f0012e78257e07a3376bfb71c0f53a3c44d
Author: Sam Thursfield <sam afuera me uk>
Date: Sun May 3 20:18:03 2020 +0200
tag-manager: Fix checks for cancellation
We were accidentally ignoring the real errors, rather than
ignoring only the cancellation errors.
src/nautilus-tag-manager.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-tag-manager.c b/src/nautilus-tag-manager.c
index 78c81e0b69..a3cf1beafc 100644
--- a/src/nautilus-tag-manager.c
+++ b/src/nautilus-tag-manager.c
@@ -246,7 +246,7 @@ on_update_callback (GObject *object,
tracker_sparql_connection_update_finish (connection, result, &error);
if (error == NULL ||
- (error != NULL && error->code != G_IO_ERROR_CANCELLED))
+ (error != NULL && error->code == G_IO_ERROR_CANCELLED))
{
for (l = data->selection; l != NULL; l = l->next)
{
@@ -330,7 +330,7 @@ get_query_status (TrackerSparqlCursor *cursor,
g_clear_object (&cursor);
if (error == NULL ||
- (error != NULL && error->code != G_IO_ERROR_CANCELLED))
+ (error != NULL && error->code == G_IO_ERROR_CANCELLED))
{
if (op_type == GET_IDS_FOR_URLS)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]