summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/installzip.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/rbutilqt/installzip.cpp')
-rw-r--r--rbutil/rbutilqt/installzip.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/rbutil/rbutilqt/installzip.cpp b/rbutil/rbutilqt/installzip.cpp
index fe16333a06..c5e91d8e36 100644
--- a/rbutil/rbutilqt/installzip.cpp
+++ b/rbutil/rbutilqt/installzip.cpp
@@ -36,6 +36,7 @@ void ZipInstaller::install(ProgressloggerInterface *dp)
connect(this, SIGNAL(cont()), this, SLOT(installContinue()));
m_url = m_urllist.at(runner);
m_logsection = m_loglist.at(runner);
+ m_logver = m_verlist.at(runner);
installStart();
}
@@ -52,6 +53,8 @@ void ZipInstaller::installContinue()
m_dp->addItem(tr("done."), LOGOK);
m_url = m_urllist.at(runner);
m_logsection = m_loglist.at(runner);
+ if(runner < m_verlist.size()) m_logver = m_verlist.at(runner);
+ else m_logver = "0";
installStart();
}
else {
@@ -186,7 +189,7 @@ void ZipInstaller::downloadDone(bool error)
installlog.beginGroup(m_logsection);
for(int i = 0; i < zipContents.size(); i++)
{
- installlog.setValue(zipContents.at(i),installlog.value(zipContents.at(i),0).toInt()+1);
+ installlog.setValue(zipContents.at(i), m_logver);
}
installlog.endGroup();