From 28294358244c2767bf6b6d27ec58bddf67978179 Mon Sep 17 00:00:00 2001 From: rachytski Date: Thu, 24 Jan 2013 18:54:58 +0300 Subject: [PATCH] calling purge on gui::Element's which are a parts of composite CountryStatusDisplay. --- map/country_status_display.cpp | 6 ++++++ map/country_status_display.hpp | 1 + 2 files changed, 7 insertions(+) diff --git a/map/country_status_display.cpp b/map/country_status_display.cpp index f79edc0d34..ea61a524a4 100644 --- a/map/country_status_display.cpp +++ b/map/country_status_display.cpp @@ -45,6 +45,12 @@ void CountryStatusDisplay::SetStatusMessage(string const & msgID, T1 const * t1, m_statusMsg->setText(msg); } +void CountryStatusDisplay::purge() +{ + m_downloadButton->purge(); + m_statusMsg->purge(); +} + void CountryStatusDisplay::cache() { m_downloadButton->setIsVisible(false); diff --git a/map/country_status_display.hpp b/map/country_status_display.hpp index 32877fdac6..8122dc4e38 100644 --- a/map/country_status_display.hpp +++ b/map/country_status_display.hpp @@ -50,6 +50,7 @@ private: /// caching resources for fast rendering. void cache(); + void purge(); string const displayName() const;