don't crash if we're handed a null action

BUG:238847

svn path=/trunk/KDE/kdelibs/; revision=1130679
This commit is contained in:
Aaron J. Seigo 2010-05-26 00:50:55 +00:00
parent 6a286f380e
commit b152bae01f

View File

@ -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());