The destructor of the PropagateItemJob will access the propagator's
_activeJobList. So the _rootJob needs to be destroyed before it.
Order of destruction is the reverse of the order of the members in
the class. So put it at the end so it can be destroyed first.
(This made TestSyncEngine::testDirDownloadWithError crash sometimes
in the master branch)
class OwncloudPropagator : public QObject {
Q_OBJECT
-
PropagateItemJob *createJob(const SyncFileItemPtr& item);
- QScopedPointer<PropagateDirectory> _rootJob;
-
public:
const QString _localDir; // absolute path to the local directory. ends with '/'
const QString _remoteFolder; // remote folder, ends with '/'
private:
AccountPtr _account;
+ QScopedPointer<PropagateDirectory> _rootJob;
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
// access to signals which are protected in Qt4