diff options
author | TingPing <TingPing@users.noreply.github.com> | 2013-09-06 17:00:55 -0700 |
---|---|---|
committer | TingPing <TingPing@users.noreply.github.com> | 2013-09-06 17:00:55 -0700 |
commit | 703316ace60e469e3500960d54b6c9c5b353f3c8 (patch) | |
tree | 79bf048b2c43a5590d6f15a280496bbb5f368152 /src/fe-gtk/fe-gtk.c | |
parent | 88afa4afa2b3821f832007ad106e92d487d82ec9 (diff) | |
parent | bf269d2e0386a54650b3b9e860eeb2e2f05a3fde (diff) |
Merge pull request #733 from hexchat/filedialog
Improve file dialogs
Diffstat (limited to 'src/fe-gtk/fe-gtk.c')
-rw-r--r-- | src/fe-gtk/fe-gtk.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/fe-gtk/fe-gtk.c b/src/fe-gtk/fe-gtk.c index acba80a5..3469569e 100644 --- a/src/fe-gtk/fe-gtk.c +++ b/src/fe-gtk/fe-gtk.c @@ -908,10 +908,15 @@ fe_confirm (const char *message, void (*yesproc)(void *), void (*noproc)(void *) { /* warning, assuming fe_confirm is used by DCC only! */ struct DCC *dcc = ud; + char *filepath; if (dcc->file) - gtkutil_file_req (message, dcc_saveas_cb, ud, dcc->file, NULL, - FRF_WRITE|FRF_NOASKOVERWRITE); + { + filepath = g_build_filename (prefs.hex_dcc_dir, dcc->file, NULL); + gtkutil_file_req (message, dcc_saveas_cb, ud, filepath, NULL, + FRF_WRITE|FRF_NOASKOVERWRITE|FRF_FILTERISINITIAL); + g_free (filepath); + } } int |