VCS: FakeVim: Ensure log editor is handled as readonly

Fixes: QTCREATORBUG-22595
Change-Id: Iab51eda5e55d36e98cf0ba5116853d6bee1dbd10
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Stenger
2019-06-19 12:34:43 +02:00
parent 853f1226e0
commit 9da3077651
2 changed files with 4 additions and 1 deletions

View File

@@ -157,7 +157,8 @@ VcsBaseEditor::VcsBaseEditor()
void VcsBaseEditor::finalizeInitialization()
{
QTC_CHECK(qobject_cast<VcsBaseEditorWidget *>(editorWidget()));
QTC_ASSERT(qobject_cast<VcsBaseEditorWidget *>(editorWidget()), return);
editorWidget()->setReadOnly(true);
}
// ----------- VcsBaseEditorPrivate