Distinguish events for new from modified bookmarks

This commit is contained in:
Christian Dywan 2012-08-07 00:42:17 +02:00
parent 75345d5047
commit b45222111b

View file

@ -976,7 +976,7 @@ midori_browser_edit_bookmark_dialog_new (MidoriBrowser* browser,
katze_array_add_item (browser->bookmarks, bookmark); katze_array_add_item (browser->bookmarks, bookmark);
else else
midori_bookmarks_update_item_db (db, bookmark); midori_bookmarks_update_item_db (db, bookmark);
midori_browser_update_history (bookmark, "bookmark", "modify"); midori_browser_update_history (bookmark, "bookmark", new_bookmark ? "create" : "modify");
if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (check_toolbar))) if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (check_toolbar)))
if (!gtk_widget_get_visible (browser->bookmarkbar)) if (!gtk_widget_get_visible (browser->bookmarkbar))