[Geany-devel] [PATCH] FIx document_need_save_as() logic

Erik de Castro Lopo mle+tools at xxxxx
Thu Aug 12 13:03:23 UTC 2010


Lex Trotman wrote:

> How does this work with geany
> some_dir_that_doesn't_exist/some_file_that_doesn't_exist?

Well it doesn't crash or do the wrong thing :-). Instead it
puts up a dialog box saying "Error saving file. No such file or
directory". The user can then choose to do SaveAs and save it
to an directory that does exist.

> IIUC the check of real path is to catch missing directories and let
> the user choose what to do

That may be so, but the pre-patch behaviour of the asking for
a SaveAs path even when a valid path was specified previously
is just annoying.

Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/



More information about the Devel mailing list