calling purge on gui::Element's which are a parts of composite CountryStatusDisplay.

This commit is contained in:
rachytski 2013-01-24 18:54:58 +03:00 committed by Alex Zolotarev
parent 6e82dd2c0c
commit 2829435824
2 changed files with 7 additions and 0 deletions

View file

@ -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);

View file

@ -50,6 +50,7 @@ private:
/// caching resources for fast rendering.
void cache();
void purge();
string const displayName() const;