From f56bc17cab3a89f95062d8a062849373cf37f160 Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Fri, 18 Mar 2016 13:35:12 +0300 Subject: [PATCH] [editor] Mark already uploaded features as not uploaded after modification. --- indexer/osm_editor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/indexer/osm_editor.cpp b/indexer/osm_editor.cpp index 181472acce..c49d21904d 100644 --- a/indexer/osm_editor.cpp +++ b/indexer/osm_editor.cpp @@ -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.