comparison ui/downloader.cpp @ 459:34cc448409ec

Fix error handling
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 23 Apr 2014 13:47:33 +0000
parents 6fac87cadbd8
children f8bed9008362
comparison
equal deleted inserted replaced
458:6fac87cadbd8 459:34cc448409ec
211 211
212 emit progress(tr("Connected"), 1, -1); 212 emit progress(tr("Connected"), 1, -1);
213 213
214 remoteModSW = getLastModifiedHeader(mResourceSW); 214 remoteModSW = getLastModifiedHeader(mResourceSW);
215 215
216 if (!remoteModSW.isValid() || !remoteModList.isValid()) { 216 if (!remoteModSW.isValid()) {
217 qDebug() << "Could not parse headers"; 217 qDebug() << "Could not parse headers for Software";
218 return; 218 return;
219 } 219 }
220 220
221 if (!mLastModSW.isValid() || remoteModSW > mLastModSW) { 221 if (!mLastModSW.isValid() || remoteModSW > mLastModSW) {
222 QString dataDirectory = getDataDirectory(); 222 QString dataDirectory = getDataDirectory();
239 emit newSoftwareAvailable(fileName, remoteModSW); 239 emit newSoftwareAvailable(fileName, remoteModSW);
240 return; 240 return;
241 } 241 }
242 242
243 remoteModList = getLastModifiedHeader(mResourceList); 243 remoteModList = getLastModifiedHeader(mResourceList);
244 if (!remoteModList.isValid()) {
245 qDebug() << "Could not parse headers for List";
246 return;
247 }
244 248
245 if (!mLastModList.isValid() || remoteModList > mLastModList) { 249 if (!mLastModList.isValid() || remoteModList > mLastModList) {
246 QString dataDirectory = getDataDirectory(); 250 QString dataDirectory = getDataDirectory();
247 251
248 if (dataDirectory.isEmpty()) { 252 if (dataDirectory.isEmpty()) {

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