зеркало из https://github.com/mozilla/pjs.git
When using a blank page as the homepage, sometimes the wait cursor hangs around. This fixes that.
This commit is contained in:
Родитель
c289215715
Коммит
f84ad00e15
|
@ -515,6 +515,22 @@ BOOL CMainFrame::FileBookmark(HT_Resource pFolder)
|
|||
//
|
||||
void CMainFrame::OnLoadHomePage()
|
||||
{
|
||||
// Sometimes on startup the hourglass will remain if we use a blank
|
||||
// page as the home page.
|
||||
// We can avoid this by simply sticking the arrow in. If we do load
|
||||
// a page, the hourglass will appear again in GetUrl, and stay
|
||||
// around until LayoutNewDocument.
|
||||
HCURSOR hCurrent = ::GetCursor();
|
||||
if(hCurrent) {
|
||||
HCURSOR hWait = ::LoadCursor(NULL, IDC_WAIT);
|
||||
if(hCurrent == hWait) {
|
||||
HCURSOR hArrow = ::LoadCursor(NULL, IDC_ARROW);
|
||||
if(hArrow) {
|
||||
::SetCursor(hArrow);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef EDITOR
|
||||
if ( IsEditFrame() )
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче