[omim] Fixed calls of storage methods from different threads.

This commit is contained in:
Ilya Grechuhin 2016-03-17 13:33:21 +03:00 committed by Sergey Yershov
parent 69a34b5769
commit 7e4fa5d171

View file

@ -510,7 +510,10 @@ bool Framework::OnCountryFileDelete(storage::TCountryId const & countryId, stora
void Framework::OnMapDeregistered(platform::LocalCountryFile const & localFile)
{
m_storage.DeleteCustomCountryVersion(localFile);
GetPlatform().RunOnGuiThread([this, localFile]
{
m_storage.DeleteCustomCountryVersion(localFile);
});
}
bool Framework::HasUnsavedEdits(storage::TCountryId const & countryId)