katze_item_set_added (item, date);
}
else if (g_str_equal (name, "day") || g_str_equal (name, "app")
- || g_str_equal (name, "toolbar") || g_str_equal (name, "type"))
+ || g_str_equal (name, "toolbar"))
{
gint value;
value = sqlite3_column_int64 (stmt, column);
return;
sqlcmd = "SELECT uri, title, app, folder FROM bookmarks WHERE "
- " toolbar = 1 ORDER BY type ASC";
+ " toolbar = 1 ORDER BY uri ASC";
array = katze_array_from_sqlite (db, sqlcmd);
if (!array)
gchar* subsqlcmd;
subsqlcmd = g_strdup_printf ("SELECT uri, title, app FROM bookmarks WHERE "
- " folder = '%s'", katze_item_get_name (item));
+ " folder = '%s' and uri != ''", katze_item_get_name (item));
subfolder = katze_array_from_sqlite (db, subsqlcmd);
katze_item_set_name (KATZE_ITEM (subfolder), katze_item_get_name (item));
midori_bookmarkbar_insert_item (browser->bookmarkbar, KATZE_ITEM (subfolder));
db = g_object_get_data (G_OBJECT (bookmarks->array), "db");
- sqlcmd = "SELECT uri, title, type, app, toolbar, folder from bookmarks where folder = ?"
- " ORDER BY type DESC";
+ sqlcmd = "SELECT uri, title, app, toolbar, folder from bookmarks where folder = ?"
+ " ORDER BY uri DESC";
result = sqlite3_prepare_v2 (db, sqlcmd, -1, &statement, NULL);
sqlite3_bind_text (statement, 1, g_strdup(folder), -1, g_free);