Merge branch '0615-dev' into 'dev-unity'
Remove black list check when add one(under '/home' or not). See merge request kylin-desktop/ukui-search!35
This commit is contained in:
commit
22fb51ec21
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue