Commit a17cd2ec authored by Laurent Montel's avatar Laurent Montel 😁

Add "/" directly

parent ba386994
...@@ -915,10 +915,10 @@ void ImportMailJob::restoreIdentity() ...@@ -915,10 +915,10 @@ void ImportMailJob::restoreIdentity()
const KArchiveEntry *vcardEntry = mArchiveDirectory->entry(Utils::identitiesPath() + QString::number(oldUid) + QDir::separator() + file.fileName()); const KArchiveEntry *vcardEntry = mArchiveDirectory->entry(Utils::identitiesPath() + QString::number(oldUid) + QDir::separator() + file.fileName());
if (vcardEntry && vcardEntry->isFile()) { if (vcardEntry && vcardEntry->isFile()) {
const KArchiveFile *vcardFile = static_cast<const KArchiveFile *>(vcardEntry); const KArchiveFile *vcardFile = static_cast<const KArchiveFile *>(vcardEntry);
QString vcardFilePath = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QLatin1Char('/') + QStringLiteral("kmail2/%1").arg(fileInfo.fileName()); QString vcardFilePath = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QStringLiteral("/kmail2/%1").arg(fileInfo.fileName());
int i = 1; int i = 1;
while (QFileInfo::exists(vcardFileName)) { while (QFileInfo::exists(vcardFileName)) {
vcardFilePath = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QLatin1Char('/') + QStringLiteral("kmail2/%1_%2").arg(i).arg( vcardFilePath = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QStringLiteral("/kmail2/%1_%2").arg(i).arg(
fileInfo.fileName()); fileInfo.fileName());
++i; ++i;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment