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:
parent
5fd137c064
commit
ec872fa08d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user