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=/branches/KDE/4.4/kdelibs/; revision=1090828
This commit is contained in:
Aaron J. Seigo 2010-02-16 06:47:37 +00:00
parent 70185eba03
commit 2c84f169a1

View File

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