diff options
Diffstat (limited to 'src/gui/menus')
-rw-r--r-- | src/gui/menus/binary.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/menus/binary.c b/src/gui/menus/binary.c index 954f3d4..c4c4e22 100644 --- a/src/gui/menus/binary.c +++ b/src/gui/menus/binary.c @@ -226,12 +226,16 @@ static void mcb_binary_storage(GtkMenuItem *menuitem, GMenuBar *bar) GLoadedBinary *binary; /* Edition courante */ GtkBuilder *builder; /* Constructeur utilisé */ GtkWidget *dialog; /* Boîte de dialogue à montrer */ + gint ret; /* Retour de confirmation */ binary = G_LOADED_BINARY(get_current_content()); dialog = create_storage_dialog(binary, get_editor_window(), &builder); - gtk_dialog_run(GTK_DIALOG(dialog)); + ret = gtk_dialog_run(GTK_DIALOG(dialog)); + + if (ret == GTK_RESPONSE_APPLY) + update_binary_storage(builder, binary); gtk_widget_destroy(dialog); |