]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/htmlwin.cpp
sets frame title even for pages without <title> tag
[wxWidgets.git] / src / html / htmlwin.cpp
index 31cc7feb0053e8dc7856f9374d9734fccb969d0e..81d3a5d785739c7e2d624da10ac15545b0442be7 100644 (file)
@@ -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();