Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 3bbcdc93 authored by Boudewijn Rempt's avatar Boudewijn Rempt

more KoDocumentRdf::model() checking sanity

parent 6cc9c99d
......@@ -371,7 +371,7 @@ KoDocument::KoDocument(QWidget *parentWidget, QObject *parent, bool singleViewMo
KConfigGroup cfgGrp(componentData().config(), "RDF");
bool rdfEnabled = cfgGrp.readEntry("rdf_enabled", false);
if (rdfEnabled) {
d->docRdf = new KoDocumentRdf(this);
setDocumentRdf(KoDocumentRdf(this));
}
}
#endif
......@@ -815,7 +815,9 @@ KoDocumentInfo *KoDocument::documentInfo() const
KoDocumentRdf *KoDocument::documentRdf() const
{
#ifdef SHOULD_BUILD_RDF
return d->docRdf;
if (d->docRdf->model()) {
return d->docRdf;
}
#endif
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment