|
@@ -138,6 +138,8 @@ bool QQuickGrpcSubscription::subscribe()
|
|
m_returnValue = reinterpret_cast<QObject*>(returnMetaType.create());
|
|
m_returnValue = reinterpret_cast<QObject*>(returnMetaType.create());
|
|
qmlEngine(this)->setObjectOwnership(m_returnValue, QQmlEngine::CppOwnership);
|
|
qmlEngine(this)->setObjectOwnership(m_returnValue, QQmlEngine::CppOwnership);
|
|
|
|
|
|
|
|
+ returnValueChanged();
|
|
|
|
+
|
|
if (m_returnValue == nullptr) {
|
|
if (m_returnValue == nullptr) {
|
|
errorString = "Unable to allocate return value. Unknown metatype system error";
|
|
errorString = "Unable to allocate return value. Unknown metatype system error";
|
|
qProtoWarning() << errorString;
|
|
qProtoWarning() << errorString;
|
|
@@ -145,8 +147,6 @@ bool QQuickGrpcSubscription::subscribe()
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
|
|
- returnValueChanged();
|
|
|
|
-
|
|
|
|
QGrpcSubscription *subscription = nullptr;
|
|
QGrpcSubscription *subscription = nullptr;
|
|
bool ok = method.invoke(m_client, Qt::DirectConnection,
|
|
bool ok = method.invoke(m_client, Qt::DirectConnection,
|
|
QGenericReturnArgument("QtProtobuf::QGrpcSubscription*", static_cast<void *>(&subscription)),
|
|
QGenericReturnArgument("QtProtobuf::QGrpcSubscription*", static_cast<void *>(&subscription)),
|