Kaydet (Commit) 47e9e6c0 authored tarafından Colomban Wendling's avatar Colomban Wendling

Ask whether to overwrite the project file when creating a new project

üst 7f7f6697
......@@ -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)
......
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