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

Erik de Castro Lopo mle+tools at xxxxx
Thu Aug 12 04:01:48 UTC 2010


Hi all,

Had a minor niggle which i decided to fix. If I do:

    geany some_file_which_doesn't_exist

geany will open a new tab with the right file name for the tab. If
I then add some code/text and try to save the file, geany currently
throws up a SaveAs dialog box even though it was already given a
filename earlier.

The attached patch fixes this (tested on Linux) by changing the
needs_save_as logic to ignore doc->real_path and only check
doc->file_name.

Cheers,
Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 5080-fix-document_need_save_as-logic.diff
Type: text/x-diff
Size: 320 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/devel/attachments/20100812/a0854d0d/attachment.diff>


More information about the Devel mailing list