From kde-commits Mon Feb 23 02:25:30 2009 From: Michael Pyne Date: Mon, 23 Feb 2009 02:25:30 +0000 To: kde-commits Subject: KDE/kdelibs/kdecore/config Message-Id: <1235355930.906909.23208.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=123535593830399 SVN commit 930322 by mpyne: The reason the change to using KDE prefix did not work for me is one of the returned prefixes was empty. Who knew? M +1 -1 kdesktopfile.cpp --- trunk/KDE/kdelibs/kdecore/config/kdesktopfile.cpp #930321:930322 @@ -159,7 +159,7 @@ // Check if the .desktop file is installed as part of KDE. foreach (const QString &prefix, kdePrefixes) { - if (path.startsWith(prefix)) + if (!prefix.isEmpty() && path.startsWith(prefix)) return true; }