forked from qt-creator/qt-creator
Fix crash opening UI files
Add a null check, amending
aaa1376576
.
Fixes: QTCREATORBUG-24241
Change-Id: I63e76b9d2dd10034b637f8f3cac5001b15b35d30
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -8741,6 +8741,7 @@ BaseTextEditor *TextEditorFactoryPrivate::createEditorHelper(const TextDocumentP
|
||||
textEditorWidget->setMarksVisible(m_marksVisible);
|
||||
textEditorWidget->setParenthesesMatchingEnabled(m_paranthesesMatchinEnabled);
|
||||
textEditorWidget->setCodeFoldingSupported(m_codeFoldingSupported);
|
||||
if (m_textEditorActionHandler)
|
||||
textEditorWidget->setOptionalActions(m_textEditorActionHandler->optionalActions());
|
||||
|
||||
BaseTextEditor *editor = m_editorCreator();
|
||||
|
Reference in New Issue
Block a user