tracker r3155 - in trunk: . src/libtracker-data



Author: carlosg
Date: Tue Mar 31 10:02:47 2009
New Revision: 3155
URL: http://svn.gnome.org/viewvc/tracker?rev=3155&view=rev

Log:
2009-03-31  Carlos Garnacho  <carlos imendio com>

        * src/libtracker-data/tracker-rdf-query.c (append_where_header):
        Filter out disabled elements in the Services table. Fixes NB#106085.

Modified:
   trunk/ChangeLog
   trunk/src/libtracker-data/tracker-rdf-query.c

Modified: trunk/src/libtracker-data/tracker-rdf-query.c
==============================================================================
--- trunk/src/libtracker-data/tracker-rdf-query.c	(original)
+++ trunk/src/libtracker-data/tracker-rdf-query.c	Tue Mar 31 10:02:47 2009
@@ -1178,6 +1178,9 @@
 		g_string_append_printf (string, " (S.ServiceTypeID=%d) ", type);
 	}
 
+	/* only search for enabled items */
+	g_string_append_printf (string, "AND (S.Enabled = 1) ");
+
 	/* only search for items on enabled volumes */
 	g_string_append_printf (string, "AND (S.AuxilaryID = 0 OR S.AuxilaryID IN (SELECT VolumeID FROM Volumes WHERE Enabled = 1)) ");
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]