summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/menus/edition.c21
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);