equal
deleted
inserted
replaced
381 QDir dir(filePath); |
381 QDir dir(filePath); |
382 if (!dir.exists()) { |
382 if (!dir.exists()) { |
383 dir.mkpath(filePath); |
383 dir.mkpath(filePath); |
384 } |
384 } |
385 |
385 |
386 filePath.append(domainName); |
386 // Make sure there are no illegal characters in "domainName" |
|
387 QString tempName = domainName; |
|
388 tempName.remove(QRegExp("[^a-zA-Z0-9]")); |
|
389 if (tempName.isEmpty()) { |
|
390 tempName = "unknown"; |
|
391 } |
|
392 |
|
393 filePath.append(tempName); |
387 filePath.append('_'); |
394 filePath.append('_'); |
388 filePath.append(profile.name()); |
395 filePath.append(profile.name()); |
389 filePath.append('_'); |
396 filePath.append('_'); |
390 filePath.append(QString::number(QDate::currentDate().year())); |
397 filePath.append(QString::number(QDate::currentDate().year())); |
391 filePath.append("wk"); |
398 filePath.append("wk"); |