Return early if we failed to load valid Wallpaper package
Reviewed-by: Marco Martin
This commit is contained in:
parent
dde1da619e
commit
d3d7a6fd63
@ -119,6 +119,10 @@ void WallpaperInterface::syncWallpaperPackage()
|
|||||||
|
|
||||||
m_actions->clear();
|
m_actions->clear();
|
||||||
m_pkg = Plasma::PluginLoader::self()->loadPackage("Plasma/Wallpaper");
|
m_pkg = Plasma::PluginLoader::self()->loadPackage("Plasma/Wallpaper");
|
||||||
|
if (!m_pkg.isValid()) {
|
||||||
|
qWarning() << "Error loading the wallpaper, no valid package loaded";
|
||||||
|
return;
|
||||||
|
}
|
||||||
m_pkg.setPath(m_wallpaperPlugin);
|
m_pkg.setPath(m_wallpaperPlugin);
|
||||||
|
|
||||||
m_configLoader->deleteLater();
|
m_configLoader->deleteLater();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user