From 99bc04c9ab0b8ab683dbb6b04d1dd7d97a9cbb78 Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Sun, 24 Aug 2014 17:40:46 -0400 Subject: [PATCH] #879 scintilla editor incorrectly reported a freshly opened file as modified --- src/scintillaeditor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scintillaeditor.cpp b/src/scintillaeditor.cpp index 73aef56a..cf5647f6 100644 --- a/src/scintillaeditor.cpp +++ b/src/scintillaeditor.cpp @@ -30,8 +30,9 @@ ScintillaEditor::ScintillaEditor(QWidget *parent) : EditorInterface(parent) } void ScintillaEditor::setPlainText(const QString &text) -{ +{ qsci->setText(text); + setContentModified(false); } QString ScintillaEditor::toPlainText()