[core] bugfix with delete notification

This commit is contained in:
ExMix 2014-10-13 12:26:05 +03:00 committed by Alex Zolotarev
parent 67b4b0651e
commit 984c7a2550

View file

@ -281,7 +281,8 @@ void ActiveMapsLayout::DeleteMap(TIndex const & index, const TMapOptions & optio
void ActiveMapsLayout::DeleteMap(TGroup const & group, int position, TMapOptions const & options)
{
m_framework.DeleteCountry(GetItemInGroup(group, position).m_index, ValidOptionsForDelete(options));
TIndex indexCopy = GetItemInGroup(group, position).m_index;
m_framework.DeleteCountry(indexCopy, ValidOptionsForDelete(options));
}
void ActiveMapsLayout::RetryDownloading(TGroup const & group, int position)