forked from qt-creator/qt-creator
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:
@@ -1401,7 +1401,7 @@ void VcsBaseEditorWidget::setCommand(VcsCommand *command)
|
|||||||
|
|
||||||
void VcsBaseEditorWidget::setPlainText(const QString &text)
|
void VcsBaseEditorWidget::setPlainText(const QString &text)
|
||||||
{
|
{
|
||||||
TextEditorWidget::setPlainText(text);
|
textDocument()->setPlainText(text);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Find the complete file from a diff relative specification.
|
// Find the complete file from a diff relative specification.
|
||||||
|
Reference in New Issue
Block a user