Stop crashing (apparently I have HAVE_NEPOMUK but the runtime check fails so the widget isn't created)

svn path=/trunk/KDE/kdebase/apps/; revision=1048851
This commit is contained in:
David Faure 2009-11-14 01:49:16 +00:00
parent 22ec26083e
commit 5328ae8942

View file

@ -585,8 +585,10 @@ void KMetaDataWidget::setReadOnly(bool readOnly)
d->m_readOnly = readOnly;
#ifdef HAVE_NEPOMUK
// TODO: encapsulate this code as part of a metadata-model for KDE 4.5
d->m_taggingWidget->setReadOnly(readOnly);
d->m_commentWidget->setReadOnly(readOnly);
if (d->m_taggingWidget)
d->m_taggingWidget->setReadOnly(readOnly);
if (d->m_commentWidget)
d->m_commentWidget->setReadOnly(readOnly);
#endif
}