display file name correctly

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10422 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2001-06-03 18:01:27 +00:00
parent 5c3e299e08
commit 744442dd11

View File

@ -354,7 +354,7 @@ void EditorFrame::RefreshTitle()
wxString s;
if (m_Modified) s << _T("* ");
s << _("wxrcedit");
if (!m_FileName)
if (m_FileName != "")
s << _T(" - ") << wxFileNameFromPath(m_FileName);
SetTitle(s);
}