Do not dispatch invalid progress information to avoid "unknown" messages

This commit is contained in:
Klaas Freitag 2014-05-13 14:40:14 +02:00
parent 64f4d1b387
commit 5493c22584

View file

@ -108,7 +108,9 @@ ProgressDispatcher::~ProgressDispatcher()
void ProgressDispatcher::setProgressInfo(const QString& folder, const Progress::Info& progress)
{
if( folder.isEmpty() ) {
if( folder.isEmpty() ||
(progress._currentItems.size() == 0
&& progress._totalFileCount == 0) ) {
return;
}
emit progressInfo( folder, progress );