[tracker/tracker-store] Bugfix for a bug spotted by Jürg, reversed if-logic
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: svn-commits-list gnome org
- Subject: [tracker/tracker-store] Bugfix for a bug spotted by Jürg, reversed if-logic
- Date: Wed, 3 Jun 2009 14:10:34 -0400 (EDT)
commit 9aa97dda82aab648b228bf56bb6d1359415331e3
Author: Philip Van Hoof <philip codeminded be>
Date: Wed Jun 3 20:10:27 2009 +0200
Bugfix for a bug spotted by Jürg, reversed if-logic
---
.../evolution/tracker-evolution-registrar.c | 2 +-
src/plugins/kmail/tracker-kmail-registrar.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/plugins/evolution/tracker-evolution-registrar.c b/src/plugins/evolution/tracker-evolution-registrar.c
index 0d52b9c..cef340b 100644
--- a/src/plugins/evolution/tracker-evolution-registrar.c
+++ b/src/plugins/evolution/tracker-evolution-registrar.c
@@ -590,7 +590,7 @@ perform_unset (TrackerEvolutionRegistrar *object,
{
gchar *sparql = g_strdup_printf ("DELETE { <%s> a rdfs:Resource }", subject);
- if (batch) {
+ if (!batch) {
tracker_store_sparql_update (sparql, NULL);
} else {
tracker_store_queue_sparql_update (sparql, NULL, NULL, NULL);
diff --git a/src/plugins/kmail/tracker-kmail-registrar.c b/src/plugins/kmail/tracker-kmail-registrar.c
index cda79bd..577db45 100644
--- a/src/plugins/kmail/tracker-kmail-registrar.c
+++ b/src/plugins/kmail/tracker-kmail-registrar.c
@@ -354,7 +354,7 @@ perform_unset (TrackerKMailRegistrar *object,
{
gchar *sparql = g_strdup_printf ("DELETE { <%s> a rdfs:Resource }", subject);
- if (batch) {
+ if (!batch) {
tracker_store_sparql_update (sparql, NULL);
} else {
tracker_store_queue_sparql_update (sparql, NULL, NULL, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]