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)
TextEditDocumentLayout *documentLayout = qobject_cast<TextEditDocumentLayout*>(m_document->documentLayout());
QTC_ASSERT(documentLayout, return true);
documentLayout->lastSaveRevision = 0;
documentLayout->lastSaveRevision = m_document->revision();
emit titleChanged(title);
emit changed();
Supports Markdown
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