From: Václav Slavík Date: Wed, 26 Jan 2000 00:50:05 +0000 (+0000) Subject: sets frame title even for pages without tag X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/096824d758780f2601b06810e3add4150f808be6 sets frame title even for pages without <title> tag git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5669 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/html/htmlwin.cpp b/src/html/htmlwin.cpp index 31cc7feb00..81d3a5d785 100644 --- a/src/html/htmlwin.cpp +++ b/src/html/htmlwin.cpp @@ -210,8 +210,10 @@ bool wxHtmlWindow::LoadPage(const wxString& location) m_History.Add(new HtmlHistoryItem(m_OpenedPage, m_OpenedAnchor)); } + if (m_OpenedPageTitle == wxEmptyString) + OnSetTitle(wxFileNameFromPath(m_OpenedPage)); SetCursor(*wxSTANDARD_CURSOR); - + wxYield(); m_tmpCanDrawLocks--; Refresh();