Various fixes to remove unnecessary warnings.

This commit is contained in:
Adam Treat
2023-05-25 11:13:02 -04:00
committed by AT
parent 0403a122ca
commit 98201540a2
4 changed files with 4 additions and 18 deletions

View File

@@ -881,12 +881,7 @@ bool Database::addFolderToWatch(const QString &path)
#if defined(DEBUG)
qDebug() << "addFolderToWatch" << path;
#endif
if (!m_watcher->addPath(path)) {
qWarning() << "ERROR: Cannot add path to file watcher:" << path;
return false;
}
return true;
return m_watcher->addPath(path);
}
bool Database::removeFolderFromWatch(const QString &path)
@@ -894,11 +889,7 @@ bool Database::removeFolderFromWatch(const QString &path)
#if defined(DEBUG)
qDebug() << "removeFolderFromWatch" << path;
#endif
if (!m_watcher->removePath(path)) {
qWarning() << "ERROR: Cannot remove path from file watcher:" << path;
return false;
}
return true;
return m_watcher->removePath(path);
}
void Database::retrieveFromDB(const QString &uid, const QList<QString> &collections, const QString &text, int retrievalSize)