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
Read-Only Files
-
- CodeLite Enthusiast
- Posts: 32
- Joined: Tue Nov 11, 2008 12:06 am
- Contact:
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Read-Only Files
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.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.
The new code which exist in revision 2304 works for other people who are using and reported it is OK for them
Please submit feature request for this here:tjulian wrote:Also, it would be nice if the statusbar indicated a rd-only file was opened.
https://sourceforge.net/tracker/?group_ ... tid=979963
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Enthusiast
- Posts: 32
- Joined: Tue Nov 11, 2008 12:06 am
- Contact:
Re: Read-Only Files
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
Perhaps this could be a user-configurable option?
--
tej
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Read-Only Files
CodeLite does not remove it automatically, it prompts the user for this.
Eran
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Enthusiast
- Posts: 32
- Joined: Tue Nov 11, 2008 12:06 am
- Contact:
Re: Read-Only Files
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
--
tej
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact: