]> spindle.queued.net Git - midori/commitdiff
Display correct folder name in bookmark edit dialog
authorAlexander Butenko <a.butenka@gmail.com>
Fri, 2 Jul 2010 15:08:08 +0000 (11:08 -0400)
committerChristian Dywan <christian@twotoasts.de>
Sat, 3 Jul 2010 20:33:45 +0000 (22:33 +0200)
midori/midori-browser.c

index 388bcdcd09c7d56ab32b3b9452d3a714c33f8b1e..5dbb2bfd45fc2be1e0abd02fccb978f439076c67 100644 (file)
@@ -855,9 +855,9 @@ 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);
-                /* FIXME: Not working */
-                /*if (katze_item_get_parent (bookmark) == item)
-                    gtk_combo_box_set_active (GTK_COMBO_BOX (combo_folder), n);*/
+                if (!new_bookmark
+                    && g_str_equal (katze_item_get_meta_string (bookmark, "folder"), name))
+                    gtk_combo_box_set_active (GTK_COMBO_BOX (combo_folder), n);
                 n++;
         }
         if (n < 2)