Upload notes when staing by.

This commit is contained in:
Sergey Magidovich 2016-03-11 12:41:47 +03:00 committed by Sergey Yershov
parent 5c4e0d0cff
commit f1433afe30

View file

@ -538,6 +538,9 @@ bool Editor::HaveSomethingToUpload(MwmSet::MwmId const & mwmId) const
void Editor::UploadChanges(string const & key, string const & secret, TChangesetTags tags,
TFinishUploadCallback callBack)
{
if (m_notes->UnuploadedNotesCount())
UploadNotes(key, secret);
if (!HaveSomethingToUpload())
{
LOG(LDEBUG, ("There are no local edits to upload."));