[Github-comments] [geany/geany] Create project's filename path (#2586)

tivrfoa notifications at xxxxx
Wed Sep 16 00:22:31 UTC 2020


@tivrfoa commented on this pull request.



> +		else
+		{
+			gtk_widget_grab_focus(e->file_name);
+			utils_free_pointers(2, project_file_dirname, locale_filename, NULL);
+			return FALSE;
+		}

> I haven't thought about this much (hence the TODO in my example code), are you sure this is the best thing to do?
> 
> I get that the path is tested above, but what if the directory is created in the meantime (ex. the user leaves the question dialog box up and create the directory using their file manager or the terminal)?
> 
> I could be wrong, but it seems like falling back to the old behaviour here would be ok, no?

But of course, if you prefer the old behaviour I make the change.

Would you like me to leave `// TODO: should this be handled?` in the `else`?

-- 
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/2586#discussion_r489089631
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20200915/d76d5ad8/attachment.htm>


More information about the Github-comments mailing list