Verify that we have "folder" meta value in bookmark edit dialog

This commit is contained in:
Alexander Butenko 2010-07-19 21:42:15 +02:00 committed by Christian Dywan
parent f764f25747
commit 9763a1225f

View file

@ -855,7 +855,7 @@ midori_browser_edit_bookmark_dialog_new (MidoriBrowser* browser,
const unsigned char* name = sqlite3_column_text (statement, 0); const unsigned char* name = sqlite3_column_text (statement, 0);
gtk_list_store_insert_with_values (model, NULL, G_MAXINT, gtk_list_store_insert_with_values (model, NULL, G_MAXINT,
0, name, 1, PANGO_ELLIPSIZE_END, -1); 0, name, 1, PANGO_ELLIPSIZE_END, -1);
if (!new_bookmark if (!new_bookmark && katze_item_get_meta_string (bookmark, "folder")
&& g_str_equal (katze_item_get_meta_string (bookmark, "folder"), name)) && g_str_equal (katze_item_get_meta_string (bookmark, "folder"), name))
gtk_combo_box_set_active (GTK_COMBO_BOX (combo_folder), n); gtk_combo_box_set_active (GTK_COMBO_BOX (combo_folder), n);
n++; n++;