Commit 3b0d6904 authored by Laurent Montel's avatar Laurent Montel 😁

Avoid twice "/"

parent 9d3aeec7
......@@ -73,7 +73,7 @@ void ExportAkregatorJob::slotCheckBackupData()
const QString akregatorDir = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QLatin1String("/akregator");
QDir akregatorDirectory(akregatorDir);
if (akregatorDirectory.exists()) {
const bool akregatorDirAdded = archive()->addLocalDirectory(akregatorDir, Utils::dataPath() + QLatin1String("/akregator"));
const bool akregatorDirAdded = archive()->addLocalDirectory(akregatorDir, Utils::dataPath() + QLatin1String("akregator"));
if (!akregatorDirAdded) {
Q_EMIT error(i18n("\"%1\" directory cannot be added to backup file.", akregatorDir));
}
......
......@@ -71,7 +71,7 @@ void ExportBlogiloJob::slotCheckBackupData()
const QString dbfileStr = QStringLiteral("blogilo.db");
const QString dbfile = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QLatin1String("/blogilo/") + dbfileStr;
if (QFileInfo::exists(dbfile)) {
backupFile(dbfile, Utils::dataPath() + QLatin1String("/blogilo/"), dbfileStr);
backupFile(dbfile, Utils::dataPath() + QLatin1String("blogilo/"), dbfileStr);
}
Q_EMIT info(i18n("Data backup done."));
......
......@@ -60,7 +60,7 @@ void ExportNotesJob::backupTheme()
const QString notesThemeDir = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QLatin1String("/knotes/print/");
QDir notesThemeDirectory(notesThemeDir);
if (notesThemeDirectory.exists()) {
const bool notesDirAdded = archive()->addLocalDirectory(notesThemeDir, Utils::dataPath() + QLatin1String("/knotes/print"));
const bool notesDirAdded = archive()->addLocalDirectory(notesThemeDir, Utils::dataPath() + QLatin1String("knotes/print"));
if (!notesDirAdded) {
Q_EMIT error(i18n("\"%1\" directory cannot be added to backup file.", notesThemeDir));
}
......
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