Mercurial > hg > svcore
diff rdf/SimpleSPARQLQuery.cpp @ 527:3c5570e3d9c5
* Fix crash in SimpleSPARQLQuery
* Fix failure to add images from local files
author | Chris Cannam |
---|---|
date | Thu, 15 Jan 2009 18:20:40 +0000 |
parents | 8878efd21dbc |
children | 48f869ce8e64 |
line wrap: on
line diff
--- a/rdf/SimpleSPARQLQuery.cpp Fri Jan 09 14:55:12 2009 +0000 +++ b/rdf/SimpleSPARQLQuery.cpp Thu Jan 15 18:20:40 2009 +0000 @@ -583,6 +583,10 @@ QMutexLocker locker(&m_mutex); + if (!m_redland) { + m_redland = new WredlandWorldWrapper(); + } + if (!m_redland->isOK()) { std::cerr << "SimpleSPARQLQuery::addSourceToModel: Failed to initialise Redland datastore" << std::endl; return false;