diff options
author | Jocelyn Turcotte <jturcotte@woboq.com> | 2017-01-25 13:28:18 +0300 |
---|---|---|
committer | Jocelyn Turcotte <jturcotte@woboq.com> | 2017-01-26 01:26:23 +0300 |
commit | ee211d76093eeb19e556e01c6917d58025d53f97 (patch) | |
tree | 957c179c66a8da937a59b0bc11658e02429ca00c /src/gui/folderman.h | |
parent | 1fc5a76622c7e1811c296c9550884cf124f3e864 (diff) |
Release SyncFileItem objects with their job
We now delete subjobs as their propagation is complete. This allows us
to also release the item by making sure that nothing else is holding a
reference to it.
Remove the stored SyncFileItemVector from SyncEngine and SyncResult
and instead gather the needed info progressively as each itemCompleted
signal is emitted.
This frees some holes on the heap as propagation goes, allowing many
memory allocations without the need of requesting more virtual memory
from the OS, preventing the memory usage from increasingly growing.
Diffstat (limited to 'src/gui/folderman.h')
-rw-r--r-- | src/gui/folderman.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/folderman.h b/src/gui/folderman.h index 911db7089..7386335b4 100644 --- a/src/gui/folderman.h +++ b/src/gui/folderman.h @@ -106,7 +106,7 @@ public: /** Creates a new and empty local directory. */ bool startFromScratch( const QString& ); - QString statusToString(SyncResult, bool paused ) const; + QString statusToString(SyncResult::Status, bool paused ) const; static SyncResult accountStatus( const QList<Folder*> &folders ); |