diff --git a/nepomuk/core/resourcedata.cpp b/nepomuk/core/resourcedata.cpp
index 16580d3..8d5c457 100644
a
|
b
|
void Nepomuk::ResourceData::setProperty( const QUrl& uri, const Nepomuk::Variant |
491 | 491 | QLatin1String("org.kde.nepomuk.DataManagement"), |
492 | 492 | QLatin1String("setProperty") ); |
493 | 493 | QVariantList varList; |
494 | | foreach( const Nepomuk::Variant var, value.toVariantList() ) { |
495 | | // make sure resource values are in the store |
| 494 | foreach( const Variant& var, value.toVariantList() ) { |
| 495 | // make sure resource values are identified and in the store |
496 | 496 | if( var.simpleType() == qMetaTypeId<Resource>() ) { |
497 | | var.toResource().m_data->store(); |
498 | | varList << var.toUrl(); |
| 497 | Resource res = var.toResource(); |
| 498 | res.determineFinalResourceData(); |
| 499 | res.m_data->store(); |
| 500 | |
| 501 | varList << res.resourceUri(); |
499 | 502 | } |
500 | 503 | else { |
501 | 504 | varList << var.variant(); |