From c39604eb1e9753a1723eba1349670ed1cedba660 Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Thu, 3 Sep 2015 14:59:29 +0200 Subject: VcsBaseEditor: Use TextDocument to set text That is the preferred way to do things (and also has the advantage of not triggering the crash described in QTCREATORBUG-14975;-). Task-number: QTCREATORBUG-14975 Change-Id: I5da9be45f3ec88478931d07b7a64dfd4d0ed32c0 Reviewed-by: Eike Ziller --- src/plugins/vcsbase/vcsbaseeditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/vcsbase/vcsbaseeditor.cpp b/src/plugins/vcsbase/vcsbaseeditor.cpp index b5f3a848f4..cb1c238aba 100644 --- a/src/plugins/vcsbase/vcsbaseeditor.cpp +++ b/src/plugins/vcsbase/vcsbaseeditor.cpp @@ -1401,7 +1401,7 @@ void VcsBaseEditorWidget::setCommand(VcsCommand *command) void VcsBaseEditorWidget::setPlainText(const QString &text) { - TextEditorWidget::setPlainText(text); + textDocument()->setPlainText(text); } // Find the complete file from a diff relative specification. -- cgit v1.2.1