Read-Only Files

Discussion about CodeLite development process and patches
tjulian
CodeLite Enthusiast
Posts: 32
Joined: Tue Nov 11, 2008 12:06 am
Contact:

Read-Only Files

Post 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
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Read-Only Files

Post 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
Make sure you have read the HOW TO POST thread
tjulian
CodeLite Enthusiast
Posts: 32
Joined: Tue Nov 11, 2008 12:06 am
Contact:

Re: Read-Only Files

Post 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
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Read-Only Files

Post by eranif »

CodeLite does not remove it automatically, it prompts the user for this.

Eran
Make sure you have read the HOW TO POST thread
tjulian
CodeLite Enthusiast
Posts: 32
Joined: Tue Nov 11, 2008 12:06 am
Contact:

Re: Read-Only Files

Post 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
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Read-Only Files

Post by eranif »

Ok, got it now :)

Eran
Make sure you have read the HOW TO POST thread
Post Reply