aboutsummaryrefslogtreecommitdiff
path: root/src/export.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/export.c')
-rw-r--r--src/export.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/export.c b/src/export.c
index ee5d06b8..f1de66a9 100644
--- a/src/export.c
+++ b/src/export.c
@@ -225,10 +225,11 @@ static void export_cancel_cb(GtkWidget *widget, gpointer data)
static void export_filesel_cb(GtkWidget *widget, gpointer data)
{
- const gchar *filename;
+ gchar *filename;
gchar *utf8_filename;
- filename = filesel_select_file(_("Select exporting file"), NULL);
+ filename = filesel_select_file(_("Select exporting file"), NULL,
+ GTK_FILE_CHOOSER_ACTION_SAVE);
if (!filename) return;
utf8_filename = g_filename_to_utf8(filename, -1, NULL, NULL, NULL);
@@ -238,6 +239,8 @@ static void export_filesel_cb(GtkWidget *widget, gpointer data)
}
gtk_entry_set_text(GTK_ENTRY(file_entry), utf8_filename);
g_free(utf8_filename);
+
+ g_free(filename);
}
static void export_srcsel_cb(GtkWidget *widget, gpointer data)