forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user