diff data/fileio/CSVFileReader.cpp @ 1492:6989d6215640 import-audio-data

Ensure first progress update happens at start
author Chris Cannam
date Fri, 29 Jun 2018 13:45:33 +0100
parents 1dc64d3d323c
children f0c2b8b31609
line wrap: on
line diff
--- a/data/fileio/CSVFileReader.cpp	Fri Jun 29 13:44:53 2018 +0100
+++ b/data/fileio/CSVFileReader.cpp	Fri Jun 29 13:45:33 2018 +0100
@@ -50,7 +50,7 @@
     m_mainModelSampleRate(mainModelSampleRate),
     m_fileSize(0),
     m_readCount(0),
-    m_progress(0),
+    m_progress(-1),
     m_reporter(reporter)
 {
     QFile *file = new QFile(path);
@@ -84,7 +84,7 @@
     m_mainModelSampleRate(mainModelSampleRate),
     m_fileSize(0),
     m_readCount(0),
-    m_progress(0),
+    m_progress(-1),
     m_reporter(reporter)
 {
     if (m_reporter) m_reporter->setDefinite(false);