diff options
author | Brett Stottlemyer <bstottle@ford.com> | 2021-03-07 08:03:33 -0500 |
---|---|---|
committer | Brett Stottlemyer <bstottle@ford.com> | 2021-03-09 07:22:30 -0500 |
commit | e910e445a4860467bc99e2bb446978fa790815dd (patch) | |
tree | 4c6da33767b7f217d134a625ab4ac3b2df3f3b73 /src/remoteobjects/qconnectionfactories.cpp | |
parent | f29bbb6e17a9308a073c5e74057bbbe9635307e0 (diff) |
ExternalIODevice fixes
Make sure the input QIODevice is valid and the disconnect signal (if
available) is connected.
Task-number: QTBUG-84640
Pick-to: 5.15 5.12
Change-Id: I9e65dc903ce0e92da4f4a1e07fd5d6b66815e2a4
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
Diffstat (limited to 'src/remoteobjects/qconnectionfactories.cpp')
-rw-r--r-- | src/remoteobjects/qconnectionfactories.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/remoteobjects/qconnectionfactories.cpp b/src/remoteobjects/qconnectionfactories.cpp index 0742eb5..1dc6cfc 100644 --- a/src/remoteobjects/qconnectionfactories.cpp +++ b/src/remoteobjects/qconnectionfactories.cpp @@ -234,7 +234,7 @@ ExternalIoDevice::ExternalIoDevice(QIODevice *device, QObject *parent) connect(m_device.data(), &QIODevice::aboutToClose, this, [this]() { this->m_isClosing = true; }); connect(m_device.data(), &QIODevice::readyRead, this, &ExternalIoDevice::readyRead); auto meta = device->metaObject(); - if (-1 == meta->indexOfSignal(SIGNAL(disconnected()))) + if (-1 != meta->indexOfSignal(SIGNAL(disconnected()))) connect(m_device.data(), SIGNAL(disconnected()), this, SIGNAL(disconnected())); } |