From ce6919b424fd4bc6093f3aa0e0588d7019d7d50a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20K=C3=BCgler?= Date: Thu, 28 Mar 2013 01:12:35 +0100 Subject: [PATCH] tighten up a bit --- src/plasmapkg/plasmapkg.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plasmapkg/plasmapkg.cpp b/src/plasmapkg/plasmapkg.cpp index af23e9c06..832e17fd9 100644 --- a/src/plasmapkg/plasmapkg.cpp +++ b/src/plasmapkg/plasmapkg.cpp @@ -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; } } }