diff options
-rw-r--r-- | utils/rbutilqt/base/zipinstaller.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/utils/rbutilqt/base/zipinstaller.cpp b/utils/rbutilqt/base/zipinstaller.cpp index ba0b89121c..4ca8ce8688 100644 --- a/utils/rbutilqt/base/zipinstaller.cpp +++ b/utils/rbutilqt/base/zipinstaller.cpp | |||
@@ -116,14 +116,17 @@ void ZipInstaller::downloadDone(QNetworkReply::NetworkError error) | |||
116 | emit done(true); | 116 | emit done(true); |
117 | return; | 117 | return; |
118 | } | 118 | } |
119 | if(m_getter->isCached()) | ||
120 | emit logItem(tr("Cached file used."), LOGINFO); | ||
121 | if(error != QNetworkReply::NoError) { | 119 | if(error != QNetworkReply::NoError) { |
122 | emit logItem(tr("Download error: %1").arg(m_getter->errorString()), LOGERROR); | 120 | emit logItem(tr("Download error: %1").arg(m_getter->errorString()), LOGERROR); |
123 | emit done(true); | 121 | emit done(true); |
124 | return; | 122 | return; |
125 | } | 123 | } |
126 | else emit logItem(tr("Download finished."),LOGOK); | 124 | else if(m_getter->isCached()) { |
125 | emit logItem(tr("Download finished (cache used)."), LOGOK); | ||
126 | } | ||
127 | else { | ||
128 | emit logItem(tr("Download finished."),LOGOK); | ||
129 | } | ||
127 | QCoreApplication::processEvents(); | 130 | QCoreApplication::processEvents(); |
128 | if(m_unzip) { | 131 | if(m_unzip) { |
129 | // unzip downloaded file | 132 | // unzip downloaded file |