Crash hotfix, need to dig down actual cause

This commit is contained in:
Markus Goetz 2013-07-30 15:49:02 +02:00
parent a07d2cddd2
commit f5bbb12434

View file

@ -503,6 +503,13 @@ void AccountSettings::slotSetProgress( const QString& folder, Progress::Info pro
return; return;
} }
// Hotfix for a crash that I experienced in a very rare case/setup
if (progress.kind == Mirall::Progress::Invalid) {
qDebug() << "================================> INVALID Progress for folder " << folder;
return;
}
QString itemFileName = shortenFilename(folder, progress.current_file); QString itemFileName = shortenFilename(folder, progress.current_file);
QString syncFileProgressString; QString syncFileProgressString;