diff options
author | ExMix <rahuba.youri@mapswithme.com> | 2014-10-13 20:13:25 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:30:29 +0300 |
commit | 3d1f43fffd9330a3d1391594d112b56f3d9d2902 (patch) | |
tree | f3afa664e46dbe418509e7fbfd73b001cad56634 /map/country_status_display.cpp | |
parent | 5772a273c2f899b43cf395977e8ca3c1eddfa6ef (diff) |
[core] notifications refactoring
Diffstat (limited to 'map/country_status_display.cpp')
-rw-r--r-- | map/country_status_display.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/map/country_status_display.cpp b/map/country_status_display.cpp index 7c36b56e7e..03d58e9f4b 100644 --- a/map/country_status_display.cpp +++ b/map/country_status_display.cpp @@ -210,13 +210,14 @@ bool CountryStatusDisplay::onTapCancelled(m2::PointD const & pt) return OnTapAction(bind(&gui::Button::onTapCancelled, _1, _2), pt); } -void CountryStatusDisplay::CountryStatusChanged(ActiveMapsLayout::TGroup const & group, int position) +void CountryStatusDisplay::CountryStatusChanged(ActiveMapsLayout::TGroup const & group, int position, + TStatus const & /*oldStatus*/, TStatus const & newStatus) { TIndex index = m_activeMaps.GetCoreIndex(group, position); if (m_countryIdx == index) { Lock(); - m_countryStatus = m_activeMaps.GetCountryStatus(index); + m_countryStatus = newStatus; Repaint(); Unlock(); } |