diff options
author | Tobias Hunger <tobias.hunger@theqtcompany.com> | 2015-09-03 14:59:29 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@theqtcompany.com> | 2015-09-07 09:55:59 +0000 |
commit | c39604eb1e9753a1723eba1349670ed1cedba660 (patch) | |
tree | 558a2a1c8ac094c2d387df6437d8c9fa7f31b775 | |
parent | a314d8d98388a6cfe0795599941ccfd4208c8295 (diff) | |
download | qt-creator-c39604eb1e9753a1723eba1349670ed1cedba660.tar.gz |
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 <eike.ziller@theqtcompany.com>
-rw-r--r-- | src/plugins/vcsbase/vcsbaseeditor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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. |