diff --git a/samples/webview/webview.cpp b/samples/webview/webview.cpp index df2bbf3972..04e1db4e9a 100644 --- a/samples/webview/webview.cpp +++ b/samples/webview/webview.cpp @@ -597,8 +597,8 @@ void WebFrame::OnNewWindow(wxWebViewEvent& evt) void WebFrame::OnTitleChanged(wxWebViewEvent& evt) { + SetTitle(evt.GetString()); wxLogMessage("%s", "Title changed; title='" + evt.GetString() + "'"); - UpdateState(); } /**