diff options
Diffstat (limited to 'src/common/syncjournaldb.cpp')
-rw-r--r-- | src/common/syncjournaldb.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/common/syncjournaldb.cpp b/src/common/syncjournaldb.cpp index 59b7ea1e4..7efb6219d 100644 --- a/src/common/syncjournaldb.cpp +++ b/src/common/syncjournaldb.cpp @@ -1608,18 +1608,19 @@ int SyncJournalDb::wipeErrorBlacklist() return -1; } -void SyncJournalDb::wipeErrorBlacklistEntry(const QString &file) +void SyncJournalDb::wipeErrorBlacklistEntry(const QString &relativeFile) { - if (file.isEmpty()) { + if (relativeFile.isEmpty()) { return; } + Q_ASSERT(QFileInfo(relativeFile).isRelative()); QMutexLocker locker(&_mutex); if (checkConnect()) { SqlQuery query(_db); query.prepare("DELETE FROM blacklist WHERE path=?1"); - query.bindValue(1, file); + query.bindValue(1, relativeFile); if (!query.exec()) { sqlFail(QStringLiteral("Deletion of blacklist item failed."), query); } |