Watch out for invalid wallpaper packages

This commit is contained in:
Sebastian Kügler 2013-03-28 01:58:52 +01:00
parent 2ac12c5fe6
commit 98b4ceb3a2

View File

@ -67,8 +67,10 @@ ConfigModel *ContainmentConfigView::wallpaperConfigModel()
foreach (const QString &package, packages) {
pkg.setPath(package);
if (!pkg.isValid()) {
continue;
}
ConfigCategory *cat = new ConfigCategory(m_wallpaperConfigModel);
qDebug() << "newed ConfigCategory";
cat->setName(pkg.metadata().name());
cat->setIcon(pkg.metadata().icon());
cat->setSource(pkg.filePath("ui", "config.qml"));