summaryrefslogtreecommitdiff
path: root/muse2/muse/songfile.cpp
diff options
context:
space:
mode:
authorRobert Jonsson <spamatica@gmail.com>2011-02-28 19:01:55 +0000
committerRobert Jonsson <spamatica@gmail.com>2011-02-28 19:01:55 +0000
commit1645eee5c59ea72438d730a01add17e106b8c82f (patch)
treef3e43abe5cbd147d1f67b0ac3e1383eb8ff25868 /muse2/muse/songfile.cpp
parentf93eed5661c223b2ee5b3789bb41d4d53946d3fc (diff)
progress dialog
Diffstat (limited to 'muse2/muse/songfile.cpp')
-rw-r--r--muse2/muse/songfile.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/muse2/muse/songfile.cpp b/muse2/muse/songfile.cpp
index 17de3d86..973bcc57 100644
--- a/muse2/muse/songfile.cpp
+++ b/muse2/muse/songfile.cpp
@@ -8,6 +8,7 @@
#include <assert.h>
#include <uuid/uuid.h>
+#include <QProgressDialog>
#include "app.h"
#include "song.h"
@@ -1206,6 +1207,9 @@ void Song::read(Xml& xml)
{
cloneList.clear();
for (;;) {
+ if (muse->progress)
+ muse->progress->setValue(muse->progress->value()+1);
+
Xml::Token token;
token = xml.parse();
const QString& tag = xml.s1();
@@ -1353,6 +1357,8 @@ void MusE::read(Xml& xml, bool skipConfig)
{
bool skipmode = true;
for (;;) {
+ if (progress)
+ progress->setValue(progress->value()+1);
Xml::Token token = xml.parse();
const QString& tag = xml.s1();
switch (token) {