comparison ui/downloader.cpp @ 1227:a1e990947172

(issue38) Add long time error handling. A Long Time Error is an error that will be shown to the user if it happened at least seven times with an interval of at least a day between occurances. After one success a long time error will be reset.
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 24 Sep 2014 15:12:40 +0200
parents 508c96e72f62
children c64b6c56ce96
comparison
equal deleted inserted replaced
1226:e401680b0cbd 1227:a1e990947172
155 155
156 qDebug() << "fileName: " << fileName; 156 qDebug() << "fileName: " << fileName;
157 157
158 if (mDownloadSW) { 158 if (mDownloadSW) {
159 if (!mSSLConnection->downloadFile(mResourceSW, fileName, MAX_SW_SIZE)) { 159 if (!mSSLConnection->downloadFile(mResourceSW, fileName, MAX_SW_SIZE)) {
160 emit error(tr("Failed to download File"), SSLConnection::ConnectionLost); 160 emit error(tr("Failed to download File.") + "\n"
161 + tr("The connection to the update server was lost or"
162 " the disk is full."), SSLConnection::ConnectionLost);
161 qDebug() << "Failed to download software update."; 163 qDebug() << "Failed to download software update.";
162 return; 164 return;
163 } 165 }
164 QFile::setPermissions(fileName, QFileDevice::ReadOwner | 166 QFile::setPermissions(fileName, QFileDevice::ReadOwner |
165 QFileDevice::WriteOwner | 167 QFileDevice::WriteOwner |

http://wald.intevation.org/projects/trustbridge/