Increase the filtering of the unauthorized folders while add search dirs.

This commit is contained in:
JunjieBai 2023-05-18 09:50:48 +08:00 committed by iaom
parent 255518c245
commit 322e8d95ee
5 changed files with 174 additions and 147 deletions

View File

@ -506,6 +506,9 @@ void Search::initFileDialog()
case ReturnCode::Hidden :
QMessageBox::warning(m_pluginWidget, tr("Warning"), tr("Add search folder failed, hidden path is not supported!"));
break;
case ReturnCode::PermissionDenied:
QMessageBox::warning(m_pluginWidget, tr("Warning"), tr("Add search folder failed, permission denied!"));
break;
default:
break;
}
@ -615,6 +618,11 @@ void Search::initSearchDirs()
int Search::setSearchDir(const QString &dirPath, const bool isAdd)
{
QFileInfo info(dirPath);
if (!(info.isExecutable() && info.isReadable())) {
return ReturnCode::PermissionDenied;
}
if (!m_setSearchDirInterface->isValid()) {
return ReturnCode::DirWatcherError;
}

View File

@ -63,7 +63,8 @@ enum ReturnCode {
RepeatMount2,
NotExists,
HasBeenBlocked,
Hidden
Hidden,
PermissionDenied
};
class Search : public QObject, CommonInterface

View File

@ -5,51 +5,51 @@
<name>Search</name>
<message>
<location filename="../search.cpp" line="32"/>
<location filename="../search.cpp" line="203"/>
<location filename="../search.cpp" line="200"/>
<source>Search</source>
<translation></translation>
<extra-contents_path>/Search/Search</extra-contents_path>
</message>
<message>
<location filename="../search.cpp" line="239"/>
<location filename="../search.cpp" line="236"/>
<source>Create index</source>
<translation></translation>
<extra-contents_path>/Search/Create index</extra-contents_path>
</message>
<message>
<location filename="../search.cpp" line="240"/>
<location filename="../search.cpp" line="237"/>
<source>Creating index can help you getting results quickly.</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="208"/>
<location filename="../search.cpp" line="205"/>
<source>Default web searching engine</source>
<translation></translation>
<extra-contents_path>/Search/Default web searching engine</extra-contents_path>
</message>
<message>
<location filename="../search.cpp" line="212"/>
<location filename="../search.cpp" line="209"/>
<source>baidu</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="213"/>
<location filename="../search.cpp" line="210"/>
<source>sougou</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="214"/>
<location filename="../search.cpp" line="211"/>
<source>360</source>
<translation>360</translation>
</message>
<message>
<location filename="../search.cpp" line="348"/>
<location filename="../search.cpp" line="345"/>
<source>Block Folders</source>
<translation></translation>
<extra-contents_path>/Search/Block Folders</extra-contents_path>
</message>
<message>
<location filename="../search.cpp" line="353"/>
<location filename="../search.cpp" line="350"/>
<source>Following folders will not be searched. You can set it by adding and removing folders.</source>
<translation> </translation>
</message>
@ -58,94 +58,95 @@
<translation type="vanished"></translation>
</message>
<message>
<location filename="../search.cpp" line="703"/>
<location filename="../search.cpp" line="774"/>
<location filename="../search.cpp" line="702"/>
<location filename="../search.cpp" line="773"/>
<source>delete</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="434"/>
<location filename="../search.cpp" line="478"/>
<location filename="../search.cpp" line="431"/>
<location filename="../search.cpp" line="475"/>
<source>Directories</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="270"/>
<location filename="../search.cpp" line="267"/>
<source>File Content Search</source>
<translation type="unfinished"></translation>
<extra-contents_path>/Search/File Content Search</extra-contents_path>
</message>
<message>
<location filename="../search.cpp" line="288"/>
<location filename="../search.cpp" line="285"/>
<source>show more results that match the keyword</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../search.cpp" line="286"/>
<location filename="../search.cpp" line="283"/>
<source>Fuzzy Search</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../search.cpp" line="275"/>
<location filename="../search.cpp" line="272"/>
<source>Precise Search</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../search.cpp" line="277"/>
<location filename="../search.cpp" line="274"/>
<source>show the results that exactly match the keyword</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../search.cpp" line="315"/>
<location filename="../search.cpp" line="312"/>
<source>Search Folders</source>
<translation type="unfinished"></translation>
<extra-contents_path>/Search/Search Folders</extra-contents_path>
</message>
<message>
<location filename="../search.cpp" line="321"/>
<location filename="../search.cpp" line="318"/>
<source>Following folders will be searched. You can set it by adding and removing folders.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../search.cpp" line="435"/>
<location filename="../search.cpp" line="432"/>
<source>select blocked folder</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="436"/>
<location filename="../search.cpp" line="480"/>
<location filename="../search.cpp" line="433"/>
<location filename="../search.cpp" line="477"/>
<source>Select</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="437"/>
<location filename="../search.cpp" line="481"/>
<location filename="../search.cpp" line="434"/>
<location filename="../search.cpp" line="478"/>
<source>Position: </source>
<translation> </translation>
</message>
<message>
<location filename="../search.cpp" line="438"/>
<location filename="../search.cpp" line="482"/>
<location filename="../search.cpp" line="435"/>
<location filename="../search.cpp" line="479"/>
<source>FileName: </source>
<translation> </translation>
</message>
<message>
<location filename="../search.cpp" line="439"/>
<location filename="../search.cpp" line="483"/>
<location filename="../search.cpp" line="436"/>
<location filename="../search.cpp" line="480"/>
<source>FileType: </source>
<translation> </translation>
</message>
<message>
<location filename="../search.cpp" line="440"/>
<location filename="../search.cpp" line="484"/>
<location filename="../search.cpp" line="437"/>
<location filename="../search.cpp" line="481"/>
<source>Cancel</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="454"/>
<location filename="../search.cpp" line="458"/>
<location filename="../search.cpp" line="462"/>
<location filename="../search.cpp" line="466"/>
<location filename="../search.cpp" line="451"/>
<location filename="../search.cpp" line="455"/>
<location filename="../search.cpp" line="459"/>
<location filename="../search.cpp" line="463"/>
<location filename="../search.cpp" line="492"/>
<location filename="../search.cpp" line="495"/>
<location filename="../search.cpp" line="498"/>
<location filename="../search.cpp" line="501"/>
@ -156,11 +157,16 @@
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="466"/>
<location filename="../search.cpp" line="510"/>
<location filename="../search.cpp" line="463"/>
<location filename="../search.cpp" line="507"/>
<source>Add search folder failed, hidden&#x3000;path is not supported!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../search.cpp" line="510"/>
<source>Add search folder failed, permission denied!</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Add blocked folder failed, choosen path is empty!</source>
<translation type="vanished"></translation>
@ -170,47 +176,47 @@
<translation type="vanished"></translation>
</message>
<message>
<location filename="../search.cpp" line="454"/>
<location filename="../search.cpp" line="451"/>
<source>Add blocked folder failed, its parent dir has been added!</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="458"/>
<location filename="../search.cpp" line="455"/>
<source>Add blocked folder failed, choosen path is not exist!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../search.cpp" line="462"/>
<location filename="../search.cpp" line="459"/>
<source>Add blocked folder failed, it has already been blocked!</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="479"/>
<location filename="../search.cpp" line="476"/>
<source>select search folder</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../search.cpp" line="498"/>
<location filename="../search.cpp" line="495"/>
<source>Add search folder failed, choosen path is not supported currently!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../search.cpp" line="504"/>
<location filename="../search.cpp" line="501"/>
<source>Add search folder failed, another path which is in the same device has been added!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../search.cpp" line="495"/>
<location filename="../search.cpp" line="492"/>
<source>Add search folder failed, choosen path or its parent dir has been added!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../search.cpp" line="501"/>
<location filename="../search.cpp" line="498"/>
<source>Add search folder failed, choosen path is in repeat mounted devices and another path which is in the same device has been added!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../search.cpp" line="507"/>
<location filename="../search.cpp" line="504"/>
<source>Add search folder failed, choosen path is not exists!</source>
<translation type="unfinished"></translation>
</message>

View File

@ -5,137 +5,138 @@
<name>Search</name>
<message>
<location filename="../search.cpp" line="32"/>
<location filename="../search.cpp" line="203"/>
<location filename="../search.cpp" line="200"/>
<source>Search</source>
<translation>Search</translation>
<extra-contents_path>/Search/Search</extra-contents_path>
</message>
<message>
<location filename="../search.cpp" line="208"/>
<location filename="../search.cpp" line="205"/>
<source>Default web searching engine</source>
<translation>Default web searching engine</translation>
<extra-contents_path>/Search/Default web searching engine</extra-contents_path>
</message>
<message>
<location filename="../search.cpp" line="212"/>
<location filename="../search.cpp" line="209"/>
<source>baidu</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="213"/>
<location filename="../search.cpp" line="210"/>
<source>sougou</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="214"/>
<location filename="../search.cpp" line="211"/>
<source>360</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="239"/>
<location filename="../search.cpp" line="236"/>
<source>Create index</source>
<translation>Create index</translation>
<extra-contents_path>/Search/Create index</extra-contents_path>
</message>
<message>
<location filename="../search.cpp" line="240"/>
<location filename="../search.cpp" line="237"/>
<source>Creating index can help you getting results quickly.</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="270"/>
<location filename="../search.cpp" line="267"/>
<source>File Content Search</source>
<translation>File Content Search</translation>
<extra-contents_path>/Search/File Content Search</extra-contents_path>
</message>
<message>
<location filename="../search.cpp" line="275"/>
<location filename="../search.cpp" line="272"/>
<source>Precise Search</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="277"/>
<location filename="../search.cpp" line="274"/>
<source>show the results that exactly match the keyword</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="286"/>
<location filename="../search.cpp" line="283"/>
<source>Fuzzy Search</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="288"/>
<location filename="../search.cpp" line="285"/>
<source>show more results that match the keyword</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="315"/>
<location filename="../search.cpp" line="312"/>
<source>Search Folders</source>
<translation>Search Folders</translation>
<extra-contents_path>/Search/Search Folders</extra-contents_path>
</message>
<message>
<location filename="../search.cpp" line="321"/>
<location filename="../search.cpp" line="318"/>
<source>Following folders will be searched. You can set it by adding and removing folders.</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="348"/>
<location filename="../search.cpp" line="345"/>
<source>Block Folders</source>
<translation>Block Folders</translation>
<extra-contents_path>/Search/Block Folders</extra-contents_path>
</message>
<message>
<location filename="../search.cpp" line="353"/>
<location filename="../search.cpp" line="350"/>
<source>Following folders will not be searched. You can set it by adding and removing folders.</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="431"/>
<location filename="../search.cpp" line="475"/>
<source>Directories</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="432"/>
<source>select blocked folder</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="433"/>
<location filename="../search.cpp" line="477"/>
<source>Select</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="434"/>
<location filename="../search.cpp" line="478"/>
<source>Directories</source>
<source>Position: </source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="435"/>
<source>select blocked folder</source>
<location filename="../search.cpp" line="479"/>
<source>FileName: </source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="436"/>
<location filename="../search.cpp" line="480"/>
<source>Select</source>
<source>FileType: </source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="437"/>
<location filename="../search.cpp" line="481"/>
<source>Position: </source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="438"/>
<location filename="../search.cpp" line="482"/>
<source>FileName: </source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="439"/>
<location filename="../search.cpp" line="483"/>
<source>FileType: </source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="440"/>
<location filename="../search.cpp" line="484"/>
<source>Cancel</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="454"/>
<location filename="../search.cpp" line="458"/>
<location filename="../search.cpp" line="462"/>
<location filename="../search.cpp" line="466"/>
<location filename="../search.cpp" line="451"/>
<location filename="../search.cpp" line="455"/>
<location filename="../search.cpp" line="459"/>
<location filename="../search.cpp" line="463"/>
<location filename="../search.cpp" line="492"/>
<location filename="../search.cpp" line="495"/>
<location filename="../search.cpp" line="498"/>
<location filename="../search.cpp" line="501"/>
@ -146,59 +147,64 @@
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="454"/>
<location filename="../search.cpp" line="451"/>
<source>Add blocked folder failed, its parent dir has been added!</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="458"/>
<location filename="../search.cpp" line="455"/>
<source>Add blocked folder failed, choosen path is not exist!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../search.cpp" line="462"/>
<location filename="../search.cpp" line="459"/>
<source>Add blocked folder failed, it has already been blocked!</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="479"/>
<location filename="../search.cpp" line="476"/>
<source>select search folder</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="495"/>
<location filename="../search.cpp" line="492"/>
<source>Add search folder failed, choosen path or its parent dir has been added!</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="498"/>
<location filename="../search.cpp" line="495"/>
<source>Add search folder failed, choosen path is not supported currently!</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="501"/>
<location filename="../search.cpp" line="498"/>
<source>Add search folder failed, choosen path is in repeat mounted devices and another path which is in the same device has been added!</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="504"/>
<location filename="../search.cpp" line="501"/>
<source>Add search folder failed, another path which is in the same device has been added!</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="507"/>
<location filename="../search.cpp" line="504"/>
<source>Add search folder failed, choosen path is not exists!</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="466"/>
<location filename="../search.cpp" line="510"/>
<location filename="../search.cpp" line="463"/>
<location filename="../search.cpp" line="507"/>
<source>Add search folder failed, hidden&#x3000;path is not supported!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../search.cpp" line="703"/>
<location filename="../search.cpp" line="774"/>
<location filename="../search.cpp" line="510"/>
<source>Add search folder failed, permission denied!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../search.cpp" line="702"/>
<location filename="../search.cpp" line="773"/>
<source>delete</source>
<translation></translation>
</message>

View File

@ -5,51 +5,51 @@
<name>Search</name>
<message>
<location filename="../search.cpp" line="32"/>
<location filename="../search.cpp" line="203"/>
<location filename="../search.cpp" line="200"/>
<source>Search</source>
<translation></translation>
<extra-contents_path>/Search/Search</extra-contents_path>
</message>
<message>
<location filename="../search.cpp" line="239"/>
<location filename="../search.cpp" line="236"/>
<source>Create index</source>
<translation></translation>
<extra-contents_path>/Search/Create index</extra-contents_path>
</message>
<message>
<location filename="../search.cpp" line="240"/>
<location filename="../search.cpp" line="237"/>
<source>Creating index can help you getting results quickly.</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="208"/>
<location filename="../search.cpp" line="205"/>
<source>Default web searching engine</source>
<translation></translation>
<extra-contents_path>/Search/Default web searching engine</extra-contents_path>
</message>
<message>
<location filename="../search.cpp" line="212"/>
<location filename="../search.cpp" line="209"/>
<source>baidu</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="213"/>
<location filename="../search.cpp" line="210"/>
<source>sougou</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="214"/>
<location filename="../search.cpp" line="211"/>
<source>360</source>
<translation>360</translation>
</message>
<message>
<location filename="../search.cpp" line="348"/>
<location filename="../search.cpp" line="345"/>
<source>Block Folders</source>
<translation></translation>
<extra-contents_path>/Search/Block Folders</extra-contents_path>
</message>
<message>
<location filename="../search.cpp" line="353"/>
<location filename="../search.cpp" line="350"/>
<source>Following folders will not be searched. You can set it by adding and removing folders.</source>
<translation></translation>
</message>
@ -58,94 +58,95 @@
<translation type="vanished"></translation>
</message>
<message>
<location filename="../search.cpp" line="703"/>
<location filename="../search.cpp" line="774"/>
<location filename="../search.cpp" line="702"/>
<location filename="../search.cpp" line="773"/>
<source>delete</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="434"/>
<location filename="../search.cpp" line="478"/>
<location filename="../search.cpp" line="431"/>
<location filename="../search.cpp" line="475"/>
<source>Directories</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="270"/>
<location filename="../search.cpp" line="267"/>
<source>File Content Search</source>
<translation></translation>
<extra-contents_path>/Search/File Content Search</extra-contents_path>
</message>
<message>
<location filename="../search.cpp" line="288"/>
<location filename="../search.cpp" line="285"/>
<source>show more results that match the keyword</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="286"/>
<location filename="../search.cpp" line="283"/>
<source>Fuzzy Search</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="275"/>
<location filename="../search.cpp" line="272"/>
<source>Precise Search</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="277"/>
<location filename="../search.cpp" line="274"/>
<source>show the results that exactly match the keyword</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="315"/>
<location filename="../search.cpp" line="312"/>
<source>Search Folders</source>
<translation></translation>
<extra-contents_path>/Search/Search Folders</extra-contents_path>
</message>
<message>
<location filename="../search.cpp" line="321"/>
<location filename="../search.cpp" line="318"/>
<source>Following folders will be searched. You can set it by adding and removing folders.</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="435"/>
<location filename="../search.cpp" line="432"/>
<source>select blocked folder</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="436"/>
<location filename="../search.cpp" line="480"/>
<location filename="../search.cpp" line="433"/>
<location filename="../search.cpp" line="477"/>
<source>Select</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="437"/>
<location filename="../search.cpp" line="481"/>
<location filename="../search.cpp" line="434"/>
<location filename="../search.cpp" line="478"/>
<source>Position: </source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="438"/>
<location filename="../search.cpp" line="482"/>
<location filename="../search.cpp" line="435"/>
<location filename="../search.cpp" line="479"/>
<source>FileName: </source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="439"/>
<location filename="../search.cpp" line="483"/>
<location filename="../search.cpp" line="436"/>
<location filename="../search.cpp" line="480"/>
<source>FileType: </source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="440"/>
<location filename="../search.cpp" line="484"/>
<location filename="../search.cpp" line="437"/>
<location filename="../search.cpp" line="481"/>
<source>Cancel</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="454"/>
<location filename="../search.cpp" line="458"/>
<location filename="../search.cpp" line="462"/>
<location filename="../search.cpp" line="466"/>
<location filename="../search.cpp" line="451"/>
<location filename="../search.cpp" line="455"/>
<location filename="../search.cpp" line="459"/>
<location filename="../search.cpp" line="463"/>
<location filename="../search.cpp" line="492"/>
<location filename="../search.cpp" line="495"/>
<location filename="../search.cpp" line="498"/>
<location filename="../search.cpp" line="501"/>
@ -156,53 +157,58 @@
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="466"/>
<location filename="../search.cpp" line="510"/>
<location filename="../search.cpp" line="463"/>
<location filename="../search.cpp" line="507"/>
<source>Add search folder failed, hidden&#x3000;path is not supported!</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="454"/>
<location filename="../search.cpp" line="510"/>
<source>Add search folder failed, permission denied!</source>
<translation>访</translation>
</message>
<message>
<location filename="../search.cpp" line="451"/>
<source>Add blocked folder failed, its parent dir has been added!</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="458"/>
<location filename="../search.cpp" line="455"/>
<source>Add blocked folder failed, choosen path is not exist!</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="462"/>
<location filename="../search.cpp" line="459"/>
<source>Add blocked folder failed, it has already been blocked!</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="479"/>
<location filename="../search.cpp" line="476"/>
<source>select search folder</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="498"/>
<location filename="../search.cpp" line="495"/>
<source>Add search folder failed, choosen path is not supported currently!</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="504"/>
<location filename="../search.cpp" line="501"/>
<source>Add search folder failed, another path which is in the same device has been added!</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="495"/>
<location filename="../search.cpp" line="492"/>
<source>Add search folder failed, choosen path or its parent dir has been added!</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="501"/>
<location filename="../search.cpp" line="498"/>
<source>Add search folder failed, choosen path is in repeat mounted devices and another path which is in the same device has been added!</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="507"/>
<location filename="../search.cpp" line="504"/>
<source>Add search folder failed, choosen path is not exists!</source>
<translation></translation>
</message>