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

Avoid twice "/"

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