set the images/ dir to be required depending on being a "full" package or a single file

This commit is contained in:
Aaron Seigo 2011-05-06 11:40:33 +02:00
parent f8070443bb
commit dffb61989e

View File

@ -260,6 +260,7 @@ void WallpaperPackage::pathChanged()
QFileInfo info(path());
m_fullPackage = info.isDir();
removeDefinition("preferred");
setRequired("images", m_fullPackage);
if (m_fullPackage) {
setContentsPrefixPaths(QStringList() << "contents/");