Show the warning before metadataPath is clear, if not the warning always show an empty result.

svn path=/trunk/KDE/kdelibs/; revision=1208682
This commit is contained in:
Nicolas Lécureuil 2010-12-22 20:55:59 +00:00
parent 5fd137c064
commit ec872fa08d

View File

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