in case a script engine does not add the standard pages (which is a bug in the script engine), at least don't crash

BUG:226823

svn path=/trunk/KDE/kdelibs/; revision=1090827
This commit is contained in:
Aaron J. Seigo 2010-02-16 06:46:39 +00:00
parent f401ea55fc
commit 74ab090b72

View File

@ -1706,6 +1706,7 @@ void Applet::showConfigurationInterface()
return;
}
d->publishUI.publishCheckbox = 0;
if (d->package && d->configLoader) {
KConfigDialog *dialog = 0;
@ -1872,6 +1873,7 @@ void AppletPrivate::configDialogFinished()
}
#ifdef ENABLE_REMOTE_WIDGETS
if (publishUI.publishCheckbox) {
q->config().writeEntry("Share", publishUI.publishCheckbox->isChecked());
if (publishUI.publishCheckbox->isChecked()) {
@ -1896,6 +1898,7 @@ void AppletPrivate::configDialogFinished()
} else {
q->unpublish();
}
}
#endif
if (!configLoader) {