Page 1 of 1
Read-Only Files
Posted: Tue Nov 11, 2008 12:11 am
by tjulian
Codelite 2304/WinXP allows read-only files to be edited. All changes I made to a read-only file were lost since CL prevented saving the file after changes were made. Also, it would be nice if the statusbar indicated a rd-only file was opened.
--
tej
Re: Read-Only Files
Posted: Tue Nov 11, 2008 12:16 am
by eranif
tjulian wrote:Codelite 2304/WinXP allows read-only files to be edited. All changes I made to a read-only file were lost since CL prevented saving the file after changes were made.
I added code to 'clear read only flag' - if this did not help you, then I dont think there is anything else I can do programatically to clear it.
The new code which exist in revision 2304 works for other people who are using and reported it is OK for them
tjulian wrote:Also, it would be nice if the statusbar indicated a rd-only file was opened.
Please submit feature request for this here:
https://sourceforge.net/tracker/?group_ ... tid=979963
Eran
Re: Read-Only Files
Posted: Tue Nov 11, 2008 12:39 am
by tjulian
No, I do not want the read-only flag cleared. CL should prevent any changes to the rd-only file (it is read-only!).
Perhaps this could be a user-configurable option?
--
tej
Re: Read-Only Files
Posted: Tue Nov 11, 2008 12:49 am
by eranif
CodeLite does not remove it automatically, it prompts the user for this.
Eran
Re: Read-Only Files
Posted: Tue Nov 11, 2008 1:11 am
by tjulian
Sorry to belabor the point, but what I am asking is that CL check when the file is Opened (no edits allowed at all) or when Edited (when the user first attempts to change the text), not when it is Saved. If the file is read-only, then CL should act only as a viewer and don't allow the file to be edited at all, i.e. no text should be added/deleted/changed etc. This method just prevents me from doing something stupid.
--
tej
Re: Read-Only Files
Posted: Tue Nov 11, 2008 1:44 am
by eranif
Ok, got it now
Eran