forked from qt-creator/qt-creator
QmlDesigner: Fix crash
The action seems to be null in some cases. Keeping the QTC_ASSERT, because this is unexpected. Task-number: QTCREATORBUG-23114 Change-Id: Id73111077c3e0b70f484600cbfb1b932aaf34945 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
committed by
Tim Jenssen
parent
f14c591464
commit
fa3f54ad1a
@@ -183,6 +183,7 @@ void FormEditorView::temporaryBlockView()
|
|||||||
|
|
||||||
void FormEditorView::setupOption3DAction()
|
void FormEditorView::setupOption3DAction()
|
||||||
{
|
{
|
||||||
|
QTC_ASSERT(m_formEditorWidget->option3DAction(), return);
|
||||||
auto import = Import::createLibraryImport("QtQuick3D", "1.0");
|
auto import = Import::createLibraryImport("QtQuick3D", "1.0");
|
||||||
auto action = m_formEditorWidget->option3DAction();
|
auto action = m_formEditorWidget->option3DAction();
|
||||||
if (model() && model()->hasImport(import, true, true)) {
|
if (model() && model()->hasImport(import, true, true)) {
|
||||||
|
Reference in New Issue
Block a user