don't crash if we're handed a null action
BUG:238847 svn path=/trunk/KDE/kdelibs/; revision=1130679
This commit is contained in:
parent
6a286f380e
commit
b152bae01f
@ -540,6 +540,10 @@ void DesktopToolBox::showToolBox()
|
||||
|
||||
void DesktopToolBox::addTool(QAction *action)
|
||||
{
|
||||
if (!action) {
|
||||
return;
|
||||
}
|
||||
|
||||
InternalToolBox::addTool(action);
|
||||
Plasma::IconWidget *tool = new Plasma::IconWidget(toolParent());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user