diff --git a/src/html/htmlwin.cpp b/src/html/htmlwin.cpp
index 799a0901fb..f72a8a9733 100644
--- a/src/html/htmlwin.cpp
+++ b/src/html/htmlwin.cpp
@@ -533,6 +533,7 @@ bool wxHtmlWindow::LoadPage(const wxString& location)
{
wxLogError(_("Unable to open requested HTML document: %s"), location.c_str());
m_tmpCanDrawLocks--;
+ SetHTMLStatusText(wxEmptyString);
return false;
}