clear m_oldStatusText after restoring it, otherwise we could restore it again the next time instead of restoring the up-to-date status bar text [backport from HEAD]

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45174 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-03-30 20:07:29 +00:00
parent 5f814f27d9
commit e224e2ccc8

View File

@@ -447,6 +447,9 @@ void wxFrameBase::DoGiveHelp(const wxString& text, bool show)
{
// i.e. restore the old one
help = m_oldStatusText;
// make sure we get the up to date text when showing it the next time
m_oldStatusText.clear();
}
statbar->SetStatusText(help, m_statusBarPane);