diff --git a/src/mirall/csyncthread.cpp b/src/mirall/csyncthread.cpp index 007548b65..3d311c280 100644 --- a/src/mirall/csyncthread.cpp +++ b/src/mirall/csyncthread.cpp @@ -251,7 +251,7 @@ int CSyncThread::treewalkError(TREE_WALK_FILE* file) if( file && (file->instruction == CSYNC_INSTRUCTION_STAT_ERROR || - file->instruction == CSYNC_INSTRUCTION_ERROR) ) { + file->instruction == CSYNC_INSTRUCTION_ERROR) ) { _mutex.lock(); _syncedItems[indx]._instruction = file->instruction; _mutex.unlock(); @@ -434,6 +434,9 @@ Progress::Kind CSyncThread::csyncToProgressKind( enum csync_notify_type_e kind ) case CSYNC_NOTIFY_FINISHED_SYNC_SEQUENCE: pKind = Progress::EndSync; break; + case CSYNC_NOTIFY_ERROR: + pKind = Progress::Error; + break; default: pKind = Progress::Invalid; break; diff --git a/src/mirall/progressdispatcher.cpp b/src/mirall/progressdispatcher.cpp index 9de2ed7eb..f7c66d110 100644 --- a/src/mirall/progressdispatcher.cpp +++ b/src/mirall/progressdispatcher.cpp @@ -87,6 +87,10 @@ void ProgressDispatcher::setProgressInfo(const QString& folder, Progress::Info n return; } + if( newProgress.kind == Progress::Error ) { + const char *msg = (const char*)newProgress.file_size; + qDebug() << "Progress-Error:" << QString::fromLocal8Bit(msg); + } if( newProgress.kind == Progress::EndSync ) { newProgress.overall_current_bytes = newProgress.overall_transmission_size; newProgress.current_file_no = newProgress.overall_file_count; diff --git a/src/mirall/progressdispatcher.h b/src/mirall/progressdispatcher.h index 345991810..a8aef19aa 100644 --- a/src/mirall/progressdispatcher.h +++ b/src/mirall/progressdispatcher.h @@ -37,7 +37,8 @@ public: StartUpload, EndDownload, EndUpload, - EndSync + EndSync, + Error }; typedef ProgressKind_s Kind;