Fix crash when urlLists is empty (for example when frame applet is not configuring)

svn path=/trunk/KDE/kdelibs/; revision=1027917
This commit is contained in:
Laurent Montel 2009-09-25 06:58:32 +00:00
parent b7768c774c
commit b3b520f1aa

View File

@ -114,7 +114,7 @@ void AssociatedApplicationManager::run(Plasma::Applet *applet)
if (!success) {
applet->showMessage(KIcon("application-exit"), i18n("There was an error attempting to exec the associated application with this widget."), ButtonOk);
}
} else if (d->urlLists.contains(applet)) {
} else if (d->urlLists.contains(applet) && !d->urlLists.value(applet).isEmpty()) {
KRun *krun = new KRun(d->urlLists.value(applet).first(), 0);
krun->setAutoDelete(true);
}