the ui load can return a null pointer, so guard against that

svn path=/trunk/KDE/kdelibs/; revision=1084622
This commit is contained in:
Aaron J. Seigo 2010-02-03 10:48:53 +00:00
parent ead4cc9d62
commit 9e9ccc663b

View File

@ -1728,7 +1728,9 @@ void Applet::showConfigurationInterface()
QWidget *w = loader.load(&f);
f.close();
dialog->addPage(w, i18n("Settings"), icon(), i18n("%1 Settings", name()));
if (w) {
dialog->addPage(w, i18n("Settings"), icon(), i18n("%1 Settings", name()));
}
}
d->addGlobalShortcutsPage(dialog);