diff options
Diffstat (limited to 'rbutil/rbutilqt/installzip.cpp')
-rw-r--r-- | rbutil/rbutilqt/installzip.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/rbutil/rbutilqt/installzip.cpp b/rbutil/rbutilqt/installzip.cpp index 68bbdc02a9..41f88171c5 100644 --- a/rbutil/rbutilqt/installzip.cpp +++ b/rbutil/rbutilqt/installzip.cpp | |||
@@ -16,13 +16,13 @@ | |||
16 | * KIND, either express or implied. | 16 | * KIND, either express or implied. |
17 | * | 17 | * |
18 | ****************************************************************************/ | 18 | ****************************************************************************/ |
19 | 19 | ||
20 | #include "installzip.h" | 20 | #include "installzip.h" |
21 | 21 | ||
22 | #include "zip/zip.h" | 22 | #include "zip/zip.h" |
23 | #include "zip/unzip.h" | 23 | #include "zip/unzip.h" |
24 | 24 | ||
25 | ZipInstaller::ZipInstaller(QObject* parent): QObject(parent) | 25 | ZipInstaller::ZipInstaller(QObject* parent): QObject(parent) |
26 | { | 26 | { |
27 | m_unzip = true; | 27 | m_unzip = true; |
28 | m_cache = ""; | 28 | m_cache = ""; |
@@ -46,7 +46,7 @@ void ZipInstaller::install(ProgressloggerInterface *dp) | |||
46 | void ZipInstaller::installContinue() | 46 | void ZipInstaller::installContinue() |
47 | { | 47 | { |
48 | qDebug() << "installContinue()"; | 48 | qDebug() << "installContinue()"; |
49 | 49 | ||
50 | runner++; // this gets called when a install finished, so increase first. | 50 | runner++; // this gets called when a install finished, so increase first. |
51 | qDebug() << "runner is now at" << runner << "size is" << m_urllist.size(); | 51 | qDebug() << "runner is now at" << runner << "size is" << m_urllist.size(); |
52 | if(runner < m_urllist.size()) { | 52 | if(runner < m_urllist.size()) { |
@@ -115,7 +115,7 @@ void ZipInstaller::downloadDone(bool error) | |||
115 | qDebug() << "Install::downloadDone, error:" << error; | 115 | qDebug() << "Install::downloadDone, error:" << error; |
116 | QStringList zipContents; // needed later | 116 | QStringList zipContents; // needed later |
117 | // update progress bar | 117 | // update progress bar |
118 | 118 | ||
119 | int max = m_dp->getProgressMax(); | 119 | int max = m_dp->getProgressMax(); |
120 | if(max == 0) { | 120 | if(max == 0) { |
121 | max = 100; | 121 | max = 100; |
@@ -155,7 +155,7 @@ void ZipInstaller::downloadDone(bool error) | |||
155 | emit done(false); | 155 | emit done(false); |
156 | return; | 156 | return; |
157 | } | 157 | } |
158 | 158 | ||
159 | ec = uz.extractAll(m_mountpoint); | 159 | ec = uz.extractAll(m_mountpoint); |
160 | if(ec != UnZip::Ok) { | 160 | if(ec != UnZip::Ok) { |
161 | m_dp->addItem(tr("Extracting failed: %1.") | 161 | m_dp->addItem(tr("Extracting failed: %1.") |
@@ -185,7 +185,7 @@ void ZipInstaller::downloadDone(bool error) | |||
185 | emit done(false); | 185 | emit done(false); |
186 | return; | 186 | return; |
187 | } | 187 | } |
188 | 188 | ||
189 | // add file to log | 189 | // add file to log |
190 | zipContents.append( m_target); | 190 | zipContents.append( m_target); |
191 | } | 191 | } |