Preventing making the document 'dirty' during initialization. This fixes #65
This commit is contained in:
parent
895d750928
commit
9c36a30d40
|
@ -190,10 +190,16 @@ namespace OpenLiveWriter.Mshtml
|
|||
// register for dirty range
|
||||
mshtmlControl.MarkupContainer.RegisterForDirtyRange(this, out _changeSinkCookie);
|
||||
|
||||
// During performing the document complete action, *something* is causing a document change log, which causes
|
||||
// IHtmlChangeSink.Notify to fire, making the document 'dirty' even when nothing was changed.
|
||||
// Suppressing handling of the 'dirty' notification until after document completion actions.
|
||||
using (SuspendNotification())
|
||||
{
|
||||
// perform document complete actions
|
||||
OnDocumentComplete();
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
HandleUncaughtException(e);
|
||||
|
|
Loading…
Reference in New Issue