diff --git a/source/ArmarXGui/gui-plugins/ObserverPropertiesPlugin/ObserverItemModel.cpp b/source/ArmarXGui/gui-plugins/ObserverPropertiesPlugin/ObserverItemModel.cpp index 89ccb6f59eacb2af5c10905875e6793596e0bf14..0b40d3072739a11e79144df2bb004426ed3b2c42 100644 --- a/source/ArmarXGui/gui-plugins/ObserverPropertiesPlugin/ObserverItemModel.cpp +++ b/source/ArmarXGui/gui-plugins/ObserverPropertiesPlugin/ObserverItemModel.cpp @@ -102,7 +102,7 @@ QWidget* ObserverItemModel::getPropertiesWidget(const QModelIndex& index, QWidge // create widget DatafieldRefPtr ref = DatafieldRefPtr::dynamicCast(entry.identifier); - if (info && !entry.value->data || entry.value->data->ice_id() == "::armarx::VariantData") + if (info && (!entry.value->data || entry.value->data->ice_id() == "::armarx::VariantData")) { ARMARX_INFO << "Variant Factory for " << entry.typeName << " is missing - trying to load lib now"; auto lib = info->loadLibraryOfVariant(entry.typeName);