X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3096bd2fa7b88105bc54c08e3c878585de1a9b91..7b9da2077d0975db6c965a85c91d5aca671ab5e3:/src/html/htmlwin.cpp?ds=sidebyside diff --git a/src/html/htmlwin.cpp b/src/html/htmlwin.cpp index 53921edc61..ab653caf7b 100644 --- a/src/html/htmlwin.cpp +++ b/src/html/htmlwin.cpp @@ -128,7 +128,9 @@ bool wxHtmlWindow::LoadPage(const wxString& location) { wxFSFile *f; bool rt_val; - wxBusyCursor b; + + SetCursor(*wxHOURGLASS_CURSOR); + wxYield(); m_tmpCanDraw = FALSE; if (m_HistoryOn && (m_HistoryPos != -1)) { // store scroll position into history item @@ -158,6 +160,8 @@ bool wxHtmlWindow::LoadPage(const wxString& location) m_tmpCanDraw = TRUE; Refresh(); wxMessageBox(err, "Error"); + + SetCursor(*wxSTANDARD_CURSOR); return FALSE; } @@ -209,6 +213,8 @@ bool wxHtmlWindow::LoadPage(const wxString& location) m_History.Add(new HtmlHistoryItem(m_OpenedPage, m_OpenedAnchor)); } + SetCursor(*wxSTANDARD_CURSOR); + m_tmpCanDraw = TRUE; Refresh(); return rt_val;