diff options
Diffstat (limited to 'dgedit')
-rw-r--r-- | dgedit/audioextractor.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/dgedit/audioextractor.cc b/dgedit/audioextractor.cc index 4250afb..4c6cd4b 100644 --- a/dgedit/audioextractor.cc +++ b/dgedit/audioextractor.cc @@ -45,7 +45,7 @@ AudioExtractor::AudioExtractor(Selections &s, QObject *parent) void AudioExtractor::exportSelections() { - emit setMaximumProgress(selections.ids().size()); + emit setMaximumProgress(selections.ids().size() + 1/* for xml writing*/); int progress = 0; emit progressUpdate(progress++); qApp->processEvents(); @@ -212,6 +212,9 @@ void AudioExtractor::exportSelections() xmlfile.open(QIODevice::WriteOnly); xmlfile.write(doc.toByteArray()); xmlfile.close(); + + emit progressUpdate(progress++); + qApp->processEvents(); } void AudioExtractor::addFile(QString file, QString name) |