From 6e4a72a3442af9e6c4010cccc2329035008df167 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 10 Aug 2013 10:54:14 +0200 Subject: Various Bugfixes * cache: use qint64 consistently instead of quint64 once (typo, I guess) * sync cancelling of ArchiveCollector: wait for it and reset the cancel var * sync access to cache file with QMutex * don't set quality for pics --- archivemodel.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'archivemodel.h') diff --git a/archivemodel.h b/archivemodel.h index 74a2715..8323385 100644 --- a/archivemodel.h +++ b/archivemodel.h @@ -82,6 +82,7 @@ class ArchiveModel : public SmTreeModel { QHash mAvailableOrders; QList mCollectors; QHash mNodeIcons; + QMutex mCacheMx; int mOrder; }; @@ -116,7 +117,8 @@ class ArchiveCollector : public QThread { explicit ArchiveCollector(int numFields, int order, QObject *parent = 0); SmTreeItem *rootItem(); int sortOrder() const { return mSortOrder; } - void cancel(); + void setCancelled(bool cancel); + bool isCancelled() const { return mCancelled; } signals: void message(const QString message); -- cgit v1.2.3-70-g09d2