only check for remote settings if we generated the dialog ourselves

This commit is contained in:
Aaron Seigo 2012-01-11 14:04:45 +01:00 committed by Sebastian Trueg
parent 361b7c721f
commit 99c7d3f5f3

View File

@ -1878,7 +1878,6 @@ void Applet::showConfigurationInterface()
}
if (immutability() != Mutable && !KAuthorized::authorize("plasma/allow_configure_when_locked")) {
//FIXME: in 4.3 add an explanatory dialog
return;
}
@ -2112,7 +2111,7 @@ void AppletPrivate::configDialogFinished()
}
#ifdef ENABLE_REMOTE_WIDGETS
if (publishUI.publishCheckbox) {
if (KConfigDialog::exists(configDialogId()) && publishUI.publishCheckbox) {
q->config().writeEntry("Share", publishUI.publishCheckbox->isChecked());
if (publishUI.publishCheckbox->isChecked()) {