[editor] Correctly clear old error status on success.

This commit is contained in:
Alex Zolotarev 2016-01-23 19:53:13 +03:00 committed by Sergey Yershov
parent 215d031d2e
commit 5b52f23f68

View file

@ -639,6 +639,7 @@ void Editor::UploadChanges(string const & key, string const & secret, TChangeset
changeset.ModifyNode(osmFeature);
fti.m_uploadStatus = kUploaded;
fti.m_uploadAttemptTimestamp = time(nullptr);
fti.m_uploadError.clear();
++uploadedFeaturesCount;
}
catch (ChangesetWrapper::OsmObjectWasDeletedException const & ex)