diff -r 4843bb5893b6 -r 8b094906a049 mtpdataproviders/mtpimagedp/src/cmtpimagedpmdeobserver.cpp --- a/mtpdataproviders/mtpimagedp/src/cmtpimagedpmdeobserver.cpp Fri Mar 12 15:46:41 2010 +0200 +++ b/mtpdataproviders/mtpimagedp/src/cmtpimagedpmdeobserver.cpp Mon Mar 15 12:43:12 2010 +0200 @@ -209,8 +209,7 @@ CMdEObjectDef& imageObjDef = def.GetObjectDefL(MdeConstants::Image::KImageObject); //Only subscribe add observer - CMdELogicCondition* addCondition = CMdELogicCondition::NewLC(ELogicConditionOperatorAnd); - CMdEPropertyDef& itemTypePropDef = imageObjDef.GetPropertyDefL(MdeConstants::Object::KItemTypeProperty); + CMdELogicCondition* addCondition = CMdELogicCondition::NewLC(ELogicConditionOperatorAnd); addCondition->AddObjectConditionL(imageObjDef); mdeSession.AddObjectObserverL(*this, addCondition, ENotifyAdd); CleanupStack::Pop(addCondition);