]> spindle.queued.net Git - midori/commitdiff
Verify that we have "folder" meta value in bookmark edit dialog
authorAlexander Butenko <a.butenka@gmail.com>
Mon, 19 Jul 2010 19:42:15 +0000 (21:42 +0200)
committerChristian Dywan <christian@twotoasts.de>
Mon, 19 Jul 2010 19:42:15 +0000 (21:42 +0200)
midori/midori-browser.c

index a9359d001753b16def82b9dd4a6000fdb0df662d..a6bb4221c808f32dd685f032ef20b5ea61142170 100644 (file)
@@ -855,7 +855,7 @@ midori_browser_edit_bookmark_dialog_new (MidoriBrowser* browser,
                 const unsigned char* name = sqlite3_column_text (statement, 0);
                 gtk_list_store_insert_with_values (model, NULL, G_MAXINT,
                     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))
                     gtk_combo_box_set_active (GTK_COMBO_BOX (combo_folder), n);
                 n++;