From 91705118f8b79336b1ba8554827ae843ecc93cc0 Mon Sep 17 00:00:00 2001 From: iaom <18504285112@163.com> Date: Fri, 18 Jun 2021 17:28:27 +0800 Subject: [PATCH] Remove black list check when add one(under '/home' or not). --- libsearch/global-settings.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libsearch/global-settings.cpp b/libsearch/global-settings.cpp index a46e857..cba42e5 100644 --- a/libsearch/global-settings.cpp +++ b/libsearch/global-settings.cpp @@ -146,11 +146,11 @@ bool GlobalSettings::setBlockDirs(const QString &path, int &returnCode, bool rem m_block_dirs_settings->remove(path); return true; } - if(!path.startsWith("/home")) { +// if(!path.startsWith("/home")) { // returnCode = QString(tr("I can only search your user directory, it doesn't make any sense if you block an directory which is not in user directory!")); - returnCode = PATH_NOT_IN_HOME; - return false; - } +// returnCode = PATH_NOT_IN_HOME; +// return false; +// } //why QSetting's key can't start with "/"?? QString pathKey = path.right(path.length() - 1);