summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-06-15 08:59:39 +0200
committerMontel Laurent <[email protected]>2017-06-15 08:59:39 +0200
commit3b0d69049001a6d8eb1cf3780a000199bb8d7ceb (patch)
treec60855fc2ad2aa5f175b7b3fea250e929e68add2
parent9d3aeec795bbfc59b03ec5d43f38a3a0a121d691 (diff)
Avoid twice "/"
-rw-r--r--core/akregator/exportakregatorjob.cpp2
-rw-r--r--core/blogilo/exportblogilojob.cpp2
-rw-r--r--core/notes/exportnotesjob.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/core/akregator/exportakregatorjob.cpp b/core/akregator/exportakregatorjob.cpp
index 0082fb0..51f2af8 100644
--- a/core/akregator/exportakregatorjob.cpp
+++ b/core/akregator/exportakregatorjob.cpp
@@ -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));
}
diff --git a/core/blogilo/exportblogilojob.cpp b/core/blogilo/exportblogilojob.cpp
index 9490614..9545b43 100644
--- a/core/blogilo/exportblogilojob.cpp
+++ b/core/blogilo/exportblogilojob.cpp
@@ -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."));
diff --git a/core/notes/exportnotesjob.cpp b/core/notes/exportnotesjob.cpp
index 28112d1..43a41d7 100644
--- a/core/notes/exportnotesjob.cpp
+++ b/core/notes/exportnotesjob.cpp
@@ -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));
}