Commit cfbc37c6 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

ieframe: Fixed and improved navigation command state tests.

parent 5a2aa4a8
...@@ -1091,20 +1091,11 @@ static HRESULT navigate_history(DocHost *This, unsigned travellog_pos) ...@@ -1091,20 +1091,11 @@ static HRESULT navigate_history(DocHost *This, unsigned travellog_pos)
return E_NOTIMPL; return E_NOTIMPL;
} }
if (travellog_pos < This->travellog.position)
{
on_commandstate_change(This, CSC_NAVIGATEBACK, VARIANT_FALSE);
on_commandstate_change(This, CSC_NAVIGATEFORWARD, VARIANT_TRUE);
}
else if (travellog_pos > This->travellog.position)
{
on_commandstate_change(This, CSC_NAVIGATEBACK, VARIANT_TRUE);
on_commandstate_change(This, CSC_NAVIGATEFORWARD, VARIANT_FALSE);
}
This->travellog.loading_pos = travellog_pos; This->travellog.loading_pos = travellog_pos;
entry = This->travellog.log + This->travellog.loading_pos; entry = This->travellog.log + This->travellog.loading_pos;
update_navigation_commands(This);
if(!entry->stream) if(!entry->stream)
return async_doc_navigate(This, entry->url, NULL, NULL, 0, FALSE); return async_doc_navigate(This, entry->url, NULL, NULL, 0, FALSE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment