aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bookmarks/ephy-bookmarks-editor.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/bookmarks/ephy-bookmarks-editor.c b/src/bookmarks/ephy-bookmarks-editor.c
index 35841772f..9d0a3bb22 100644
--- a/src/bookmarks/ephy-bookmarks-editor.c
+++ b/src/bookmarks/ephy-bookmarks-editor.c
@@ -708,6 +708,12 @@ cmd_bookmarks_export (GtkAction *action,
response = gtk_dialog_run (GTK_DIALOG (dialog));
+ if (response != GTK_RESPONSE_ACCEPT)
+ {
+ gtk_widget_destroy (dialog);
+ return;
+ }
+
format = gtk_combo_box_get_active (GTK_COMBO_BOX (combo));
filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (dialog));
basename = g_path_get_basename (filename);
@@ -727,10 +733,7 @@ cmd_bookmarks_export (GtkAction *action,
}
g_free (basename);
}
- while (response == GTK_RESPONSE_ACCEPT
- && !ephy_gui_check_location_writable (GTK_WIDGET (dialog), filename));
-
- gtk_widget_destroy (dialog);
+ while (!ephy_gui_check_location_writable (GTK_WIDGET (dialog), filename));
/* 0 for ephy RDF format, 1 for mozilla HTML format */