QmlDesigner: crash fix on shutdown

Change-Id: I6e20a99189c81fcb8ec0b0474a219ac1056731bc
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Tim Jenssen
2022-11-28 11:25:34 +01:00
committed by Thomas Hartmann
parent 34b966c21d
commit cdbdde7d37

View File

@@ -47,7 +47,8 @@ void MoveTool::clear()
m_contentNotEditableIndicator.clear();
AbstractFormEditorTool::clear();
view()->formEditorWidget()->graphicsView()->viewport()->unsetCursor();
if (view()->formEditorWidget()->graphicsView())
view()->formEditorWidget()->graphicsView()->viewport()->unsetCursor();
}
void MoveTool::start()