FIXED: Unncesessary warning if file was reloaded via script

Report issues, odd behaviors or submit a detailed bug report.
Post Reply
User avatar
pjj
Posts: 1834
Joined: 13 Oct 2009 13:48
Location: Kraków, Poland

FIXED: Unncesessary warning if file was reloaded via script

Post by pjj »

So I have this one-liner, configured as a tool (icon in editor's toolbar):

Code: Select all

Document.Reload(false);
It reloads current document alright, but if navigate away to another document, warning modal ("This document file has been altered...") momentarily pops up. Arguably there should be no such warning (as there is none, if I reload this document via RMC menu or from the menu File > Reload...).

BTW, perhaps Document.Reload(true) should invoke Save changes dialog, instead of Save As?
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus

User avatar
Rickard Johansson
Site Admin
Posts: 6045
Joined: 19 Jul 2006 14:29

Re: Unncesessary warning if file was reloaded via script

Post by Rickard Johansson »

Fixed the warning message issue and the prompt to save if the document has been modified.

Post Reply