diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2019-09-29 21:57:42 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2019-09-29 21:57:42 (GMT) |
commit | c434b8ccaae01810903e098ad8e66f8ead3141eb (patch) | |
tree | 9d0938011c37af7e297183e65b653360bcfaf315 /src/gui/menus | |
parent | 3a83a06db8ee27eafcd0219d1d26bf2af23737f5 (diff) |
Removed useless features from DB collections.
Diffstat (limited to 'src/gui/menus')
-rw-r--r-- | src/gui/menus/edition.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/gui/menus/edition.c b/src/gui/menus/edition.c index 92596ca..d3381bf 100644 --- a/src/gui/menus/edition.c +++ b/src/gui/menus/edition.c @@ -736,29 +736,8 @@ static void mcb_edition_bookmarks_toggle(GtkMenuItem *menuitem, GMenuBar *bar) { bookmark = get_item_from_bookmark_dialog(builder, &addr); - g_db_collection_wlock(G_DB_COLLECTION(collec)); - - if (g_db_collection_has_item(collec, G_DB_ITEM(bookmark))) - { - ret = qck_show_question(GTK_WINDOW(ref), - _("Location already bookmarked!"), - _("A bookmark has been defined at the same location.\n" \ - "Do you want to replace it ?")); - - if (ret != GTK_RESPONSE_YES) - { - g_object_unref(G_OBJECT(bookmark)); - goto mcb_ebt_add_finish; - } - - } - g_loaded_binary_add_to_collection(binary, G_DB_ITEM(bookmark)); - mcb_ebt_add_finish: - - g_db_collection_wunlock(G_DB_COLLECTION(collec)); - } gtk_widget_destroy(dialog); |