forked from organicmaps/organicmaps
[omim] Fixed calls of storage methods from different threads.
This commit is contained in:
parent
69a34b5769
commit
7e4fa5d171
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue