guard returnToSourceAction pointer

svn path=/trunk/KDE/kdelibs/; revision=1112148
This commit is contained in:
Marco Martin 2010-04-07 13:17:55 +00:00
parent 556c51d2a5
commit fa7a1ddfe9

View File

@ -805,7 +805,9 @@ void ExtenderItemPrivate::updateToolBox()
if (!closeAction) {
closeAction = new QAction(q);
actions.insert("close", closeAction);
returnToSourceAction->setToolTip(i18n("Close"));
if (returnToSourceAction) {
returnToSourceAction->setToolTip(i18n("Close"));
}
QObject::connect(closeAction, SIGNAL(triggered()), q, SLOT(destroy()));
}