Commit 7c75e2b1 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

astyle-kdelibs

parent 7891ffb4
......@@ -365,7 +365,7 @@ QStringList AbstractImportExportJob::restoreResourceFile(const QString &resource
const KArchiveEntry *dataResouceEntry = mArchiveDirectory->entry(dataFile);
if (dataResouceEntry->isFile()) {
const KArchiveFile *file = static_cast<const KArchiveFile *>(dataResouceEntry);
file->copyTo(newUrl.adjusted(QUrl::RemoveFilename|QUrl::StripTrailingSlash).path());
file->copyTo(newUrl.adjusted(QUrl::RemoveFilename | QUrl::StripTrailingSlash).path());
}
settings.insert(QLatin1String("Path"), newUrl.path());
......
......@@ -172,4 +172,3 @@ void ShowArchiveStructureDialog::readConfig()
}
}
......@@ -809,7 +809,7 @@ void ImportMailJob::restoreConfig()
copyToFile(entry, QString(QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QLatin1String("/") + QLatin1String("kmail2/adblockrules_local")), QLatin1String("adblockrules_local"), Utils::dataPath() + QLatin1String("kmail2/"));
}
} else {
copyToFile(entry, QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QLatin1Char('/') + QLatin1String("kmail2/adblockrules_local"),QLatin1String("adblockrules_local"), Utils::dataPath() + QLatin1String("kmail2/") );
copyToFile(entry, QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QLatin1Char('/') + QLatin1String("kmail2/adblockrules_local"), QLatin1String("adblockrules_local"), Utils::dataPath() + QLatin1String("kmail2/"));
}
}
......
......@@ -17,7 +17,6 @@
#include "pimsettingexporterwindow.h"
#include <kaboutdata.h>
#include <KLocalizedString>
#include <KDBusService>
......
......@@ -79,4 +79,3 @@ void SynchronizeResourceJob::setListResources(const QStringList &resources)
mListResources = resources;
}
......@@ -123,9 +123,9 @@ QUrl Utils::adaptResourcePath(KSharedConfigPtr resourceConfig, const QString &st
if (QFile(newUrl.path()).exists()) {
QString newFileName = newUrl.path();
for (int i = 0;; ++i) {
newFileName = newUrl.adjusted(QUrl::RemoveFilename|QUrl::StripTrailingSlash).path() + QLatin1Char('/') + QString::number(i) + QLatin1Char('/') + newUrl.fileName();
newFileName = newUrl.adjusted(QUrl::RemoveFilename | QUrl::StripTrailingSlash).path() + QLatin1Char('/') + QString::number(i) + QLatin1Char('/') + newUrl.fileName();
if (!QFile(newFileName).exists()) {
QDir dir(newUrl.adjusted(QUrl::RemoveFilename|QUrl::StripTrailingSlash).path());
QDir dir(newUrl.adjusted(QUrl::RemoveFilename | QUrl::StripTrailingSlash).path());
dir.mkdir(QString::number(i));
break;
}
......
Supports Markdown
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