Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Zolotarev <alex@maps.me>2016-03-18 13:35:12 +0300
committerSergey Yershov <yershov@corp.mail.ru>2016-03-23 16:56:55 +0300
commitf56bc17cab3a89f95062d8a062849373cf37f160 (patch)
tree78981d31abb80d1cde0d2bed04b2836e3101aaf7
parentb98d56399c26603917244a137f87683e596ed208 (diff)
[editor] Mark already uploaded features as not uploaded after modification.
-rw-r--r--indexer/osm_editor.cpp2
1 files changed, 2 insertions, 0 deletions
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.