From ec872fa08de6100c924d409d44610e30174992c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C3=A9cureuil?= Date: Wed, 22 Dec 2010 20:55:59 +0000 Subject: [PATCH] Show the warning before metadataPath is clear, if not the warning always show an empty result. svn path=/trunk/KDE/kdelibs/; revision=1208682 --- packagestructure.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packagestructure.cpp b/packagestructure.cpp index 48e712da3..295f1db85 100644 --- a/packagestructure.cpp +++ b/packagestructure.cpp @@ -601,8 +601,8 @@ void PackageStructurePrivate::createPackageMetadata(const QString &path) QString metadataPath(path + "/metadata.desktop"); if (!QFile::exists(metadataPath)) { - metadataPath.clear(); kWarning() << "No metadata file in the package, expected it at:" << metadataPath; + metadataPath.clear(); } metadata = new PackageMetadata(metadataPath);