fix: incorrect behavior when parse and launch
Signed-off-by: ComixHe <heyuming@deepin.org>
This commit is contained in:
@ -69,10 +69,8 @@ void applyIteratively(QList<QDir> dirs, T &&func)
|
||||
continue;
|
||||
}
|
||||
|
||||
const auto &infoList =
|
||||
dir.entryInfoList({"*.desktop"},
|
||||
QDir::Readable | QDir::AllDirs | QDir::Files | QDir::NoSymLinks | QDir::NoDotAndDotDot,
|
||||
QDir::Name | QDir::DirsLast);
|
||||
const auto &infoList = dir.entryInfoList(
|
||||
{"*.desktop"}, QDir::Readable | QDir::AllDirs | QDir::Files | QDir::NoDotAndDotDot, QDir::Name | QDir::DirsLast);
|
||||
|
||||
for (const auto &info : infoList) {
|
||||
if (info.isFile() and func(info)) {
|
||||
|
Reference in New Issue
Block a user