Commit aac47dcb authored by mae's avatar mae
Browse files

fix revision handling in base text editor.

After recent qt changes, the initial revision after a QTextDocument::setPlainText()
is not 0.
parent 600fc9b2
......@@ -228,7 +228,7 @@ bool BaseTextDocument::open(const QString &fileName)
m_document->setPlainText(text);
TextEditDocumentLayout *documentLayout = qobject_cast<TextEditDocumentLayout*>(m_document->documentLayout());
QTC_ASSERT(documentLayout, return true);
documentLayout->lastSaveRevision = 0;
documentLayout->lastSaveRevision = m_document->revision();
m_document->setModified(false);
emit titleChanged(title);
emit changed();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment