diff options
author | Ken Moore <moorekou@gmail.com> | 2016-03-23 09:45:12 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2016-03-23 09:45:12 -0400 |
commit | acd8dd4cc21d9ea7cc485b0b4a8b971f9f10b12d (patch) | |
tree | d1460b93f6dd8c370dceb45744633d95598b60b7 /lumina-desktop | |
parent | Update the default PC-BSD/Lumina wallpapers for 0.9.0. (diff) | |
download | lumina-acd8dd4cc21d9ea7cc485b0b4a8b971f9f10b12d.tar.gz lumina-acd8dd4cc21d9ea7cc485b0b4a8b971f9f10b12d.tar.bz2 lumina-acd8dd4cc21d9ea7cc485b0b4a8b971f9f10b12d.zip |
Fix a crash when an invalid desktop plugin is found.
Diffstat (limited to 'lumina-desktop')
-rw-r--r-- | lumina-desktop/LDesktopPluginSpace.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lumina-desktop/LDesktopPluginSpace.cpp b/lumina-desktop/LDesktopPluginSpace.cpp index be1e1c4b..a55f3e31 100644 --- a/lumina-desktop/LDesktopPluginSpace.cpp +++ b/lumina-desktop/LDesktopPluginSpace.cpp @@ -104,6 +104,7 @@ void LDesktopPluginSpace::addDesktopPlugin(QString plugID){ //This is used for generic plugins (QWidget-based) if(DEBUG){ qDebug() << "Adding Desktop Plugin:" << plugID; } LDPlugin *plug = NewDP::createPlugin(plugID, this); + if(plug==0){ return; } //invalid plugin plug->setWhatsThis(plugID); //Now get the geometry for the plugin QRect geom = plug->loadPluginGeometry(); //in pixel coords |