Author Topic: Open as Read Only then not opens a file as Read Only still  (Read 1468 times)

Offline Arthur

  • Registered User
  • Hero Member
  • *
  • Posts: 653
  • Karma: +1/-0
  • He who is ashamed of asking is afraid of learning.
    • My Blog
Open as Read Only then not opens a file as Read Only still
« on: August 04, 2009, 09:43:53 PM »
I worked on a number of SQL files earlier today (file type perhaps does not matter).
I had opened several of them by doing Ctrl-O to get the open file dialog in which I marked the "Open read only" check box for the last file.
I copied and pasted text to my editable files from this file. Then closed them all.
Now, when (I did not exit HE since then) I needed to open this  previously opened as read-only file for editing it came up as read-only again despite the fact I did not choose that option at this time.

I checked the file itself and it was not marked as "Read only" by the OS,
but HE would load it each time as so.
Any idea how to fix?

I hope I was clear enough explaining my issue, otherwise I will elaborate.
PS: I am on the latest beta.

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2208
  • Karma: +37/-3
    • HippoEDIT
Re: Open as Read Only then not opens a file as Read Only still
« Reply #1 on: August 06, 2009, 03:15:19 PM »
Hi Arthur,

it is clear enough :) But HE works as designed. It stores your preference between session as encoding, syntax etc. And it is also possible to have file read-only on demand, not based on file attributes or locked state. Check File -> Read-Only command.

So, just Ctr+R and file is editable once more :) And this state is stored.

Best regards,
Alex.

Offline Arthur

  • Registered User
  • Hero Member
  • *
  • Posts: 653
  • Karma: +1/-0
  • He who is ashamed of asking is afraid of learning.
    • My Blog
Re: Open as Read Only then not opens a file as Read Only still
« Reply #2 on: August 06, 2009, 04:35:28 PM »
But when I open it again, when I select it the option Read only is marked as disabled. I expect then once I choose this file this option to become enabled, or my logic is wrong?

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2208
  • Karma: +37/-3
    • HippoEDIT
Re: Open as Read Only then not opens a file as Read Only still
« Reply #3 on: August 06, 2009, 05:28:26 PM »
The read-only check box in File Open dialog is not dependent to selected files (this is controlled not by HE but by Windows API) and just general instruction for application using dialog that user prefers to have files by default read-only. And what to do if you select multiple files?

Maybe it is possible to hook FO dialog and update read-only flag respectively to selected file, but effort is too big and not compatible with benefits...

Best regards,
Alex.

Offline Arthur

  • Registered User
  • Hero Member
  • *
  • Posts: 653
  • Karma: +1/-0
  • He who is ashamed of asking is afraid of learning.
    • My Blog
Re: Open as Read Only then not opens a file as Read Only still
« Reply #4 on: August 06, 2009, 05:55:24 PM »
Quote
Maybe it is possible to hook FO dialog and update read-only flag respectively to selected file...
Is exactly what I meant but could not express in the proper way ;), too pity it is too tedious to do  :(