Unset the contentsPrefixPaths for the ThemePackages. The Theme Packages are not supposed to have a "contents/" directory.

REVIEWED-BY: Marco Martin
This commit is contained in:
Giorgos Tsiapaliokas 2014-06-06 18:25:16 +03:00
parent 9c642fd700
commit 35e5c46358

View File

@ -141,6 +141,10 @@ void DataEnginePackage::initPackage(Package *package)
void ThemePackage::initPackage(Package *package)
{
// by default the packages have "contents/" as contentsPrefixPaths
// but for the themes we don't want that, so unset it.
package->setContentsPrefixPaths(QStringList());
package->addDirectoryDefinition("dialogs", "dialogs/", i18n("Images for dialogs"));
package->addFileDefinition("dialogs/background", "dialogs/background.svg",
i18n("Generic dialog background"));