[Github-comments] [geany/geany] Change Save As->Rename to Save As->Save and Remove Original (#1190)

elextr notifications at xxxxx
Wed Aug 24 01:34:17 UTC 2016


>  	success = document_save_file_as(doc, utf8_filename);
>  
> +	if (orig_file_name)
> +	{
> +		if (success)
> +		{
> +			gchar *orig_file_name_locale = utils_get_locale_from_utf8(orig_file_name);
> +
> +			if (g_remove(orig_file_name_locale) != 0)
> +				dialogs_show_msgbox_with_secondary(GTK_MESSAGE_ERROR,
> +						_("Error deleting original file."), g_strerror(errno));

Maybe a more re-assuring "File saved, but original file removal failed" or something similar?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/1190/files/4019f701838557b6e6dd419a4c8de59701f7d64c#r75982245
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160823/d2cd54f6/attachment.html>


More information about the Github-comments mailing list