tighten up a bit

This commit is contained in:
Sebastian Kügler 2013-03-28 01:12:35 +01:00
parent c12ecd0f51
commit ce6919b424

View File

@ -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;
} }
} }
} }