Kaydet (Commit) d7020722 authored tarafından Enrico Tröger's avatar Enrico Tröger

Call handle_save_as() only when the Save As dialog was not cancelled.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4915 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst fb3f8909
......@@ -7,6 +7,8 @@
Remove old code.
Pass and use also parent and title arguments to
win32_show_document_open_dialog().
* src/dialogs.c:
Call handle_save_as() only when the Save As dialog was not cancelled.
2010-05-15 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
......
......@@ -226,7 +226,7 @@ void dialogs_show_open_file()
setptr(initdir, utils_get_locale_from_utf8(initdir));
#if GEANY_USE_WIN32_DIALOG
win32_show_document_open_dialog(TRUE, initdir);
win32_show_document_open_dialog(GTK_WINDOW(main_widgets.window), _("Open File"), initdir);
#else /* X11, not win32: use GTK_FILE_CHOOSER */
/* We use the same file selection widget each time, so first of all we create it
......@@ -551,12 +551,13 @@ static gboolean gtk_show_save_as(void)
**/
gboolean dialogs_show_save_as()
{
gboolean result;
gboolean result = FALSE;
#if GEANY_USE_WIN32_DIALOG
GeanyDocument *doc = document_get_current();
gchar *utf8_name = win32_show_document_save_as_dialog(GTK_WINDOW(main_widgets.window),
_("Save File"), DOC_FILENAME(doc));
if (utf8_name != NULL)
result = handle_save_as(utf8_name, FALSE, FALSE);
#else
result = gtk_show_save_as();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment