diff options
author | Sam Thursfield <sam@afuera.me.uk> | 2020-05-03 20:18:03 +0200 |
---|---|---|
committer | Sam Thursfield <sam@afuera.me.uk> | 2020-05-11 22:23:31 +0200 |
commit | 8f19c4b51457bb93b549636e8e07bad6aa2233ab (patch) | |
tree | d965b86e67cd4544e22cdb5883ed8ef22fa17b9f | |
parent | 0dd7ce7c00e915e27d2d585e263fd2e8265ee315 (diff) | |
download | nautilus-8f19c4b51457bb93b549636e8e07bad6aa2233ab.tar.gz |
tag-manager: Fix checks for cancellation
We were accidentally ignoring the real errors, rather than
ignoring only the cancellation errors.
-rw-r--r-- | src/nautilus-tag-manager.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nautilus-tag-manager.c b/src/nautilus-tag-manager.c index 78c81e0b6..a3cf1beaf 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) { |