void Folder::slotThreadTreeWalkResult(const SyncFileItemVector& items)
{
- addErroredSyncItemPathsToList(items, &this->_stateLastSyncItemsWithError);
+ addErroredSyncItemPathsToList(items, &this->_stateLastSyncItemsWithErrorNew);
_syncResult.setSyncFileItemVector(items);
}
// (which imply the folder) to generate the syncing state icon now.
_stateTaintedFolders.clear();
- addErroredSyncItemPathsToList(items, &this->_stateLastSyncItemsWithError);
+ addErroredSyncItemPathsToList(items, &this->_stateLastSyncItemsWithErrorNew);
}
void Folder::slotItemCompleted(const SyncFileItem &item, const PropagatorJob& job)
{
if (item.hasErrorStatus()) {
- _stateLastSyncItemsWithError.insert(item._file);
+ _stateLastSyncItemsWithErrorNew.insert(item._file);
}
if (Progress::isWarningKind(item._status)) {
/// Reset when no follow-up is requested.
int _consecutiveFollowUpSyncs;
- // For the SocketAPI folder states
+ // SocketAPI: Cache files and folders that had errors so that they can
+ // get a red ERROR icon.
QSet<QString> _stateLastSyncItemsWithErrorNew; // gets moved to _stateLastSyncItemsWithError at end of sync
QSet<QString> _stateLastSyncItemsWithError;
+
+ // SocketAPI: A folder is tained if we got a file watcher notification
+ // for it. It's displayed as EVAL.
QSet<QString> _stateTaintedFolders;
SyncJournalDb _journal;