Author Topic: Bug: HippoEdit updates files changed by external application without notice  (Read 483 times)

Offline knn

  • Newbie
  • *
  • Posts: 45
  • Karma: +0/-0
    • View Profile
I started Firefox.

I edited "prefs.js" (from the firefox folder) while FireFox was running.

I closed Firefox.

"prefs.js" got automatically reset without confirmation.

HOWEVER:
1) SOMETIMES HippoEdit asks for confirmation
2) Sometimes I close FireFox, "prefs.js" is NOT reset, BUT all undos are gone (= I cannot undo anything anymore).
« Last Edit: August 11, 2010, 09:36:01 am by knn »

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1712
  • Karma: +29/-2
    • View Profile
    • HippoEDIT
Hi knn,

there can be several reasons for this.

If you are running HE version higher then 1.48.782, than it can be recently added feature:
New. Updated and not modified documents from now on reloaded automatically by default. Controlled by new XML flag AutoReloadNonModified.

Also can be that some when, when prefs.js was updated and HE shows use message box with request for reload you have selected "Always reload for this file". Or you set this property explicitly menu File->Auto-Reload.

But probably reason is first case. This also explains why Undo was lost.

Quote
Topic Summary
Posted by: knn    Posted on: Today at 09:32:55 am
Insert Quote
I started Firefox.

I edited "prefs.js" (from the firefox folder) while FireFox was running.

I closed Firefox.

"prefs.js" got automatically reset without confirmation.

HOWEVER:
1) SOMETIMES HippoEdit asks for confirmation
2) Sometimes I close FireFox, "prefs.js" is NOT reset, BUT all undos are gone (= I cannot undo anything anymore).
I think, this depends from who have saved prefs.js first, HE or Firefox. That can happen, that HE saves it, than Firefox reloads it internally and than saves without any change. In this case HE will reload it anyway (there are no diffs done) because modified date of file has been changed, but because content is same, it will look like that document was no reset. But actually it is.

Best regards,
Alex.

Offline knn

  • Newbie
  • *
  • Posts: 45
  • Karma: +0/-0
    • View Profile
So if no diffs are done then how does HE know that it's non-modified?

And why should it be good to have auto-reload which makes you silently lose all UNDOs without confirmation and without notification?

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1712
  • Karma: +29/-2
    • View Profile
    • HippoEDIT
Quote
So if no diffs are done then how does HE know that it's non-modified?
Modified here means changed inside HE and not yet saved.
But probably will be better to auto reload document by default (no due to user selected auto reload flag) not when it is not modified, but when it was not modified in the current session at all. Will update logic in 1.49.

Quote
And why should it be good to have auto-reload which makes you silently lose all UNDOs without confirmation and without notification?
It is good to have such feature if you view documents.

Offline knn

  • Newbie
  • *
  • Posts: 45
  • Karma: +0/-0
    • View Profile
It is good to have such feature if you view documents.

It's good to silently lose all UNDOs? Having edited something (= UNDOs exist) is a proof that the document has not only been VIEWED.

 

Related Topics

  Subject / Started by Replies Last post
15 Replies
2704 Views
Last post April 28, 2009, 12:25:01 am
by alex
15 Replies
1393 Views
Last post April 20, 2009, 09:33:56 pm
by alex
6 Replies
1315 Views
Last post April 29, 2009, 04:25:59 pm
by alex
4 Replies
804 Views
Last post November 04, 2009, 01:06:41 pm
by alex
0 Replies
2253 Views
Last post December 20, 2009, 03:36:14 pm
by alex