diff options
author | BogDan Vatra <bogdan@kdab.com> | 2017-11-27 16:05:04 +0200 |
---|---|---|
committer | BogDan Vatra <bogdan@kdab.com> | 2017-11-29 06:04:04 +0000 |
commit | 3599a63c9ff83e3f31f79befcb0771a14061e296 (patch) | |
tree | 09b60081e54147e744f277acd1d86c367f9d9618 /src/remoteobjects/qremoteobjectabstractitemmodelreplica.cpp | |
parent | 1c01c30d703ce3c4a8d8d47be3138c1af6ed3e84 (diff) |
Don't push the same request twice
Fixes a crash when it can't connect to source
Change-Id: Ieca3dd5affff45b0bf43a689f7016b20bfe2fccf
Reviewed-by: Michael Brasser <michael.brasser@live.com>
Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
Diffstat (limited to 'src/remoteobjects/qremoteobjectabstractitemmodelreplica.cpp')
-rw-r--r-- | src/remoteobjects/qremoteobjectabstractitemmodelreplica.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/remoteobjects/qremoteobjectabstractitemmodelreplica.cpp b/src/remoteobjects/qremoteobjectabstractitemmodelreplica.cpp index 92444c1..94358bc 100644 --- a/src/remoteobjects/qremoteobjectabstractitemmodelreplica.cpp +++ b/src/remoteobjects/qremoteobjectabstractitemmodelreplica.cpp @@ -423,7 +423,6 @@ void QAbstractItemModelReplicaImplementation::init() { qCDebug(QT_REMOTEOBJECT_MODELS) << Q_FUNC_INFO; SizeWatcher *watcher = doModelReset(); - m_pendingRequests.push_back(watcher); connect(watcher, &SizeWatcher::finished, this, &QAbstractItemModelReplicaImplementation::handleInitDone); } |