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

svn path=/branches/KDE/4.4/kdelibs/; revision=1084626
This commit is contained in:
Aaron J. Seigo 2010-02-03 10:50:47 +00:00
parent 978d127094
commit 3f52ba3c9f

View File

@ -1734,7 +1734,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);