tighten up a bit
This commit is contained in:
parent
c12ecd0f51
commit
ce6919b424
@ -360,10 +360,10 @@ QStringList PlasmaPkgPrivate::packages(const QStringList& types)
|
|||||||
QDir cd(wpath);
|
QDir cd(wpath);
|
||||||
QStringList entries = cd.entryList(QDir::Dirs);
|
QStringList entries = cd.entryList(QDir::Dirs);
|
||||||
foreach (const QString wallpap, entries) {
|
foreach (const QString wallpap, entries) {
|
||||||
if (wallpap != "." && wallpap != "..") {
|
if ((wallpap != "." && wallpap != "..") &&
|
||||||
if (QFile::exists(wpath+'/'+wallpap+"/metadata.desktop")) {
|
(QFile::exists(wpath+'/'+wallpap+"/metadata.desktop"))) {
|
||||||
result << wallpap;
|
|
||||||
}
|
result << wallpap;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user