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>
This commit is contained in:
Tobias Hunger
2015-09-03 14:59:29 +02:00
parent a314d8d983
commit c39604eb1e

View File

@@ -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.