[geany/geany] 47e9e6: Ask whether to overwrite the project file when creating a new project
Colomban Wendling
git-noreply at xxxxx
Fri Jul 4 15:54:07 UTC 2014
Branch: refs/heads/master
Author: Colomban Wendling <ban at herbesfolles.org>
Committer: Colomban Wendling <ban at herbesfolles.org>
Date: Fri, 04 Jul 2014 15:54:07 UTC
Commit: 47e9e6c000e7f0742ef416e56a73e5c02ef93778
https://github.com/geany/geany/commit/47e9e6c000e7f0742ef416e56a73e5c02ef93778
Log Message:
-----------
Ask whether to overwrite the project file when creating a new project
Modified Paths:
--------------
src/project.c
Modified: src/project.c
10 lines changed, 10 insertions(+), 0 deletions(-)
===================================================================
@@ -723,6 +723,16 @@ static gboolean update_config(const PropertyDialogElements *e, gboolean new_proj
g_free(locale_filename);
return FALSE;
}
+ else if (new_project && g_file_test(locale_filename, G_FILE_TEST_EXISTS) &&
+ ! dialogs_show_question_full(NULL, _("_Replace"), GTK_STOCK_CANCEL,
+ NULL,
+ _("The file '%s' already exists. Do you want to overwrite it?"),
+ file_name))
+ {
+ gtk_widget_grab_focus(e->file_name);
+ g_free(locale_filename);
+ return FALSE;
+ }
g_free(locale_filename);
if (app->project == NULL)
--------------
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