Mercurial > hg > svcore
comparison 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 |
comparison
equal
deleted
inserted
replaced
1491:1dc64d3d323c | 1492:6989d6215640 |
---|---|
48 m_ownDevice(true), | 48 m_ownDevice(true), |
49 m_warnings(0), | 49 m_warnings(0), |
50 m_mainModelSampleRate(mainModelSampleRate), | 50 m_mainModelSampleRate(mainModelSampleRate), |
51 m_fileSize(0), | 51 m_fileSize(0), |
52 m_readCount(0), | 52 m_readCount(0), |
53 m_progress(0), | 53 m_progress(-1), |
54 m_reporter(reporter) | 54 m_reporter(reporter) |
55 { | 55 { |
56 QFile *file = new QFile(path); | 56 QFile *file = new QFile(path); |
57 bool good = false; | 57 bool good = false; |
58 | 58 |
82 m_ownDevice(false), | 82 m_ownDevice(false), |
83 m_warnings(0), | 83 m_warnings(0), |
84 m_mainModelSampleRate(mainModelSampleRate), | 84 m_mainModelSampleRate(mainModelSampleRate), |
85 m_fileSize(0), | 85 m_fileSize(0), |
86 m_readCount(0), | 86 m_readCount(0), |
87 m_progress(0), | 87 m_progress(-1), |
88 m_reporter(reporter) | 88 m_reporter(reporter) |
89 { | 89 { |
90 if (m_reporter) m_reporter->setDefinite(false); | 90 if (m_reporter) m_reporter->setDefinite(false); |
91 } | 91 } |
92 | 92 |