Various fixes to remove unnecessary warnings.

pull/721/head
Adam Treat 1 year ago committed by AT
parent 0403a122ca
commit 98201540a2

@ -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)

@ -632,11 +632,8 @@ Window {
onLinkActivated: function (link) {
if (!link.startsWith("context://"))
return;
console.log("link " + link);
return
var integer = parseInt(link.split("://")[1]);
console.log("context is" + referencesContext[integer - 1]);
referenceContextDialog.text = referencesContext[integer - 1];
referenceContextDialog.open();
}

@ -36,7 +36,7 @@ Item {
FolderDialog {
id: folderDialog
title: "Please choose a directory"
currentFolder: StandardPaths.writableLocation(StandardPaths.DocumentsLocation)
currentFolder: StandardPaths.writableLocation(StandardPaths.HomeLocation)
onAccepted: {
root.folder_path = selectedFolder
}

@ -21,8 +21,6 @@ Dialog {
Row {
anchors.centerIn: parent
width: childrenRect.width
height: childrenRect.height
spacing: 20
Text {

Loading…
Cancel
Save