diff -r aabe5387f5ce -r 1b39655331a3 mtpdataproviders/mtpimagedp/src/cmtpimagedpmdeobserver.cpp --- a/mtpdataproviders/mtpimagedp/src/cmtpimagedpmdeobserver.cpp Fri Mar 19 09:40:39 2010 +0200 +++ b/mtpdataproviders/mtpimagedp/src/cmtpimagedpmdeobserver.cpp Fri Apr 16 15:51:48 2010 +0300 @@ -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);