Watch out for invalid wallpaper packages
This commit is contained in:
parent
2ac12c5fe6
commit
98b4ceb3a2
@ -67,8 +67,10 @@ ConfigModel *ContainmentConfigView::wallpaperConfigModel()
|
|||||||
|
|
||||||
foreach (const QString &package, packages) {
|
foreach (const QString &package, packages) {
|
||||||
pkg.setPath(package);
|
pkg.setPath(package);
|
||||||
|
if (!pkg.isValid()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
ConfigCategory *cat = new ConfigCategory(m_wallpaperConfigModel);
|
ConfigCategory *cat = new ConfigCategory(m_wallpaperConfigModel);
|
||||||
qDebug() << "newed ConfigCategory";
|
|
||||||
cat->setName(pkg.metadata().name());
|
cat->setName(pkg.metadata().name());
|
||||||
cat->setIcon(pkg.metadata().icon());
|
cat->setIcon(pkg.metadata().icon());
|
||||||
cat->setSource(pkg.filePath("ui", "config.qml"));
|
cat->setSource(pkg.filePath("ui", "config.qml"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user