aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2016-03-23 09:45:12 -0400
committerKen Moore <moorekou@gmail.com>2016-03-23 09:45:12 -0400
commitacd8dd4cc21d9ea7cc485b0b4a8b971f9f10b12d (patch)
treed1460b93f6dd8c370dceb45744633d95598b60b7 /lumina-desktop
parentUpdate the default PC-BSD/Lumina wallpapers for 0.9.0. (diff)
downloadlumina-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.cpp1
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
bgstack15