comparison ui/downloader.cpp @ 442:d2f4e28b5a13

Fix date format for file names
author Andre Heinecke <aheinecke@intevation.de>
date Tue, 22 Apr 2014 14:27:19 +0000
parents 17e1c8f37d72
children 20f539866fa8
comparison
equal deleted inserted replaced
441:bd26fc6893e3 442:d2f4e28b5a13
226 qDebug() << "Failed to get data directory"; 226 qDebug() << "Failed to get data directory";
227 return; 227 return;
228 } 228 }
229 229
230 QString fileName = dataDirectory.append("/SW-") 230 QString fileName = dataDirectory.append("/SW-")
231 .append(remoteModSW.toString("yyyymmddHHmmss")) 231 .append(remoteModSW.toString("yyyyMMddHHmmss"))
232 .append(".exe"); 232 .append(".exe");
233 233
234 qDebug() << "fileName: " << fileName; 234 qDebug() << "fileName: " << fileName;
235 235
236 if (!downloadFile(mResourceSW, fileName, MAX_SW_SIZE)) { 236 if (!downloadFile(mResourceSW, fileName, MAX_SW_SIZE)) {
245 qDebug() << "Failed to get data directory"; 245 qDebug() << "Failed to get data directory";
246 return; 246 return;
247 } 247 }
248 248
249 QString fileName = dataDirectory.append("/list-") 249 QString fileName = dataDirectory.append("/list-")
250 .append(remoteModSW.toString("yyyymmddHHmmss")) 250 .append(remoteModSW.toString("yyyyMMddHHmmss"))
251 .append(".txt"); 251 .append(".txt");
252 252
253 qDebug() << "fileName: " << fileName; 253 qDebug() << "fileName: " << fileName;
254 254
255 if (!downloadFile(mResourceList, fileName, MAX_LIST_SIZE)) { 255 if (!downloadFile(mResourceList, fileName, MAX_LIST_SIZE)) {

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