Hi, I think I found a QScintilla bug. When you clone a document using setDocument(other.document()), the modified state is not transfered causing isModified() to return false even if other.isModified() returns true. Regards, Detlev -- Detlev Offenbach detlev at die-offenbachs.de