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,8 +1734,10 @@ void Applet::showConfigurationInterface()
QWidget *w = loader.load(&f); QWidget *w = loader.load(&f);
f.close(); f.close();
if (w) {
dialog->addPage(w, i18n("Settings"), icon(), i18n("%1 Settings", name())); dialog->addPage(w, i18n("Settings"), icon(), i18n("%1 Settings", name()));
} }
}
d->addGlobalShortcutsPage(dialog); d->addGlobalShortcutsPage(dialog);
d->addPublishPage(dialog); d->addPublishPage(dialog);