forked from qt-creator/qt-creator
QmlDesigner: initialize unique pointer
This crashes with Qt 5. With Qt 6 this "worked", which was most likely pure luck. Change-Id: I652b190ae0d4b00adb4c48e601e7be9512f86d16 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -45,6 +45,7 @@ namespace QmlDesigner {
|
|||||||
|
|
||||||
Qt5NodeInstanceServer::Qt5NodeInstanceServer(NodeInstanceClientInterface *nodeInstanceClient)
|
Qt5NodeInstanceServer::Qt5NodeInstanceServer(NodeInstanceClientInterface *nodeInstanceClient)
|
||||||
: NodeInstanceServer(nodeInstanceClient)
|
: NodeInstanceServer(nodeInstanceClient)
|
||||||
|
, m_designerSupport(new QQuickDesignerSupport)
|
||||||
{
|
{
|
||||||
if (!ViewConfig::isParticleViewMode())
|
if (!ViewConfig::isParticleViewMode())
|
||||||
QQuickDesignerSupport::activateDesignerMode();
|
QQuickDesignerSupport::activateDesignerMode();
|
||||||
|
Reference in New Issue
Block a user