diff options
author | Iago Toral Quiroga <itoral@igalia.com> | 2010-02-25 12:55:27 +0100 |
---|---|---|
committer | Iago Toral Quiroga <itoral@igalia.com> | 2010-02-25 12:55:27 +0100 |
commit | b789e11e2837365384b71dd83204484bf4cb60b3 (patch) | |
tree | 5f3c929927789864ec30ad6b8ae00318d8372a3d | |
parent | 66be1adcd0d16251bc241be5530c6e61754b3e22 (diff) | |
download | grilo-plugins-b789e11e2837365384b71dd83204484bf4cb60b3.tar.gz |
[bookmarks] Use GRL_IS_CONTENT_BOX to detect if the item to store
is a container.
-rw-r--r-- | src/bookmarks/grl-bookmarks.c | 6 |
1 files 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); |