]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/webview/webview.cpp
Update wxHtmlWindow documentation to refer to wxWebView.
[wxWidgets.git] / samples / webview / webview.cpp
index 4f679f872b3b6140fe09ce569874a922d72ebccc..04e1db4e9a23987e6165345fb150cd4aa446d4cb 100644 (file)
@@ -360,6 +360,7 @@ WebFrame::WebFrame() : wxFrame(NULL, wxID_ANY, "wxWebView Sample")
 
 WebFrame::~WebFrame()
 {
+    delete m_timer;
     delete m_tools_menu;
 }
 
@@ -596,8 +597,8 @@ void WebFrame::OnNewWindow(wxWebViewEvent& evt)
 
 void WebFrame::OnTitleChanged(wxWebViewEvent& evt)
 {
+    SetTitle(evt.GetString());
     wxLogMessage("%s", "Title changed; title='" + evt.GetString() + "'");
-    UpdateState();
 }
 
 /**