Commit 78d07c6d authored by Erik Verbruggen's avatar Erik Verbruggen

Fixed off-by-one

parent cac5663a
......@@ -130,7 +130,7 @@ void DuiModelManager::parse(QFutureInterface<void> &future,
QStringList files,
DuiModelManager *modelManager)
{
future.setProgressRange(0, files.size() + 1);
future.setProgressRange(0, files.size());
for (int i = 0; i < files.size(); ++i) {
future.setProgressValue(i);
......@@ -157,5 +157,5 @@ void DuiModelManager::parse(QFutureInterface<void> &future,
modelManager->emitDocumentUpdated(doc);
}
future.setProgressValue(files.size() + 1);
future.setProgressValue(files.size());
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment