From b789e11e2837365384b71dd83204484bf4cb60b3 Mon Sep 17 00:00:00 2001 From: Iago Toral Quiroga Date: Thu, 25 Feb 2010 12:55:27 +0100 Subject: [bookmarks] Use GRL_IS_CONTENT_BOX to detect if the item to store is a container. --- src/bookmarks/grl-bookmarks.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bookmarks/grl-bookmarks.c b/src/bookmarks/grl-bookmarks.c index 11454db..8b3c1aa 100644 --- a/src/bookmarks/grl-bookmarks.c +++ b/src/bookmarks/grl-bookmarks.c @@ -604,10 +604,10 @@ store_bookmark (sqlite3 *db, g_debug ("URL: '%s'", url); - if (url && url[0]) { - type = BOOKMARK_TYPE_STREAM; - } else { + if (GRL_IS_CONTENT_BOX (bookmark)) { type = BOOKMARK_TYPE_CATEGORY; + } else { + type = BOOKMARK_TYPE_STREAM; } sqlite3_bind_text (sql_stmt, 1, parent_id, -1, SQLITE_STATIC); -- cgit v1.2.1