Branch: refs/heads/master Author: Adam Coyne github@mail2.coyne.nu Committer: Adam Coyne github@mail2.coyne.nu Date: Fri, 22 Feb 2013 05:49:46 UTC Commit: 62077c626c10116bde050d50cb4aef0e167f5eee https://github.com/geany/geany/commit/62077c626c10116bde050d50cb4aef0e167f5e...
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).