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:
parent
978d127094
commit
3f52ba3c9f
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user