Fixed crash upon exiting a config dialog when compiled without ENABLE_REMOTE_WIDGETS

svn path=/trunk/KDE/kdelibs/; revision=1022715
This commit is contained in:
Andreas Kling 2009-09-12 11:07:11 +00:00
parent 7d23823095
commit 6e412aedd9

View File

@ -1841,9 +1841,9 @@ void AppletPrivate::configDialogFinished()
}
}
#ifdef ENABLE_REMOTE_WIDGETS
q->config().writeEntry("Publish", publishUI.publishCheckbox->isChecked());
#ifdef ENABLE_REMOTE_WIDGETS
if (publishUI.publishCheckbox->isChecked()) {
QString resourceName =
i18nc("%1 is the name of a plasmoid, %2 the name of the machine that plasmoid is published on",