summaryrefslogtreecommitdiff
path: root/dgedit
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2014-04-17 09:41:15 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2014-04-17 09:41:15 +0200
commita63f2ded039309e109019a089e3d03523b678ae0 (patch)
tree705ae21d6655ed13f90b4963a9b70d9313430f5c /dgedit
parent4daa3f6dac734ae9277159a1ae895006819887e5 (diff)
Slight fixup of progress values.
Diffstat (limited to 'dgedit')
-rw-r--r--dgedit/audioextractor.cc5
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)