[geany/geany] 62077c: Prompt to overwrite in Windows Save As dialog

Adam Coyne git-noreply at xxxxx
Mon May 26 16:15:01 UTC 2014


Branch:      refs/heads/master
Author:      Adam Coyne <github at mail2.coyne.nu>
Committer:   Adam Coyne <github at mail2.coyne.nu>
Date:        Fri, 22 Feb 2013 05:49:46 UTC
Commit:      62077c626c10116bde050d50cb4aef0e167f5eee
             https://github.com/geany/geany/commit/62077c626c10116bde050d50cb4aef0e167f5eee

Log Message:
-----------
Prompt to overwrite in Windows Save As dialog

Add OFN_OVERWRITEPROMPT so the dialog will prompt before overwriting an existing file.
Remove the OFN_FILEMUSTEXIST flag, which works only with Open dialogs.


Modified Paths:
--------------
    src/win32.c

Modified: src/win32.c
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -452,7 +452,7 @@ gchar *win32_show_document_save_as_dialog(GtkWindow *parent, const gchar *title,
 	of.lpstrFileTitle = NULL;
 	of.lpstrTitle = w_title;
 	of.lpstrDefExt = L"";
-	of.Flags = OFN_FILEMUSTEXIST | OFN_EXPLORER;
+	of.Flags = OFN_OVERWRITEPROMPT | OFN_EXPLORER;
 	retval = GetSaveFileNameW(&of);
 
 	if (! retval)



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list