diff options
author | Rainer Keller <Rainer.Keller@qt.io> | 2019-04-01 11:25:44 +0200 |
---|---|---|
committer | Rainer Keller <Rainer.Keller@qt.io> | 2019-04-10 10:44:24 +0000 |
commit | c01f40838332add667dbc106768fdb435e767fb2 (patch) | |
tree | 36005e2b68cafc12cd496d569fc49dc622c05983 | |
parent | 6803b2a50160d863676ec3419d965d9bbf23247c (diff) |
qml: Delete relative node path resolver after finishing
Otherwise it would get deleted when the QML parent element is deleted,
which can be until end of the application.
Change-Id: Iace80bf98d55fe05e31f0e849789929f5131fd31
Reviewed-by: Jannis Völker <jannis.voelker@basyskom.com>
-rw-r--r-- | src/imports/opcua/opcuapathresolver.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/imports/opcua/opcuapathresolver.cpp b/src/imports/opcua/opcuapathresolver.cpp index e0670da..a933d6b 100644 --- a/src/imports/opcua/opcuapathresolver.cpp +++ b/src/imports/opcua/opcuapathresolver.cpp @@ -209,6 +209,7 @@ void OpcUaPathResolver::browsePathFinished(QVector<QOpcUaBrowsePathTarget> resul nodeToUse.resolveNamespace(m_client); qCDebug(QT_OPCUA_PLUGINS_QML) << "Relative node fully resolved to:" << nodeToUse.fullNodeId(); emit resolvedNode(nodeToUse, QString()); + deleteLater(); } QT_END_NAMESPACE |