From eb752fcf9bd09338f30460e90b1d1d215b165fa2 Mon Sep 17 00:00:00 2001 From: ExMix Date: Fri, 14 Aug 2015 16:12:23 +0300 Subject: [PATCH] [drape] to avoid second lock on model mutex on the same thread we call Framework::ReportInfo later through thread message loop --- map/storage_bridge.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/map/storage_bridge.cpp b/map/storage_bridge.cpp index bee981f305..e47d117564 100644 --- a/map/storage_bridge.cpp +++ b/map/storage_bridge.cpp @@ -1,5 +1,7 @@ #include "storage_bridge.hpp" +#include "platform/platform.hpp" + #include "base/assert.hpp" #include "base/macros.hpp" @@ -56,5 +58,5 @@ void StorageBridge::ReportChanges(ActiveMapsLayout::TGroup const & group, int po storage::TIndex countryIndex = m_activeMaps->GetCoreIndex(group, position); if (m_handler != nullptr) - m_handler(countryIndex); + GetPlatform().RunOnGuiThread(bind(m_handler, countryIndex)); }