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);
|
||||
QStringList entries = cd.entryList(QDir::Dirs);
|
||||
foreach (const QString wallpap, entries) {
|
||||
if (wallpap != "." && wallpap != "..") {
|
||||
if (QFile::exists(wpath+'/'+wallpap+"/metadata.desktop")) {
|
||||
result << wallpap;
|
||||
}
|
||||
if ((wallpap != "." && wallpap != "..") &&
|
||||
(QFile::exists(wpath+'/'+wallpap+"/metadata.desktop"))) {
|
||||
|
||||
result << wallpap;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user