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

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45173 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-03-30 20:06:52 +00:00
parent 4dd10327d2
commit 6af350d428

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