[editor] Mark already uploaded features as not uploaded after modification.

This commit is contained in:
Alex Zolotarev 2016-03-18 13:35:12 +03:00 committed by Sergey Yershov
parent b98d56399c
commit f56bc17cab

View file

@ -387,6 +387,8 @@ Editor::SaveResult Editor::SaveEditedFeature(EditableMapObject const & emo)
// TODO: What if local client time is absolutely wrong?
fti.m_modificationTimestamp = time(nullptr);
fti.m_street = emo.GetStreet();
// Reset upload status so already uploaded features can be uploaded again after modification.
fti.m_uploadStatus = {};
m_features[fid.m_mwmId][fid.m_index] = move(fti);
// TODO(AlexZ): Synchronize Save call/make it on a separate thread.