guard returnToSourceAction pointer
svn path=/trunk/KDE/kdelibs/; revision=1112148
This commit is contained in:
parent
556c51d2a5
commit
fa7a1ddfe9
@ -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()));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user