diff 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
line wrap: on
line diff
--- a/ui/downloader.cpp	Wed Sep 24 15:05:53 2014 +0200
+++ b/ui/downloader.cpp	Wed Sep 24 15:12:40 2014 +0200
@@ -157,7 +157,9 @@
 
         if (mDownloadSW) {
             if (!mSSLConnection->downloadFile(mResourceSW, fileName, MAX_SW_SIZE)) {
-                emit error(tr("Failed to download File"), SSLConnection::ConnectionLost);
+                emit error(tr("Failed to download File.") + "\n"
+                        + tr("The connection to the update server was lost or"
+                            " the disk is full."), SSLConnection::ConnectionLost);
                 qDebug() << "Failed to download software update.";
                 return;
             }

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