mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-28 03:40:54 +00:00
parent
8dffe81768
commit
094199c9db
1 changed files with 14 additions and 10 deletions
|
@ -3857,6 +3857,7 @@ namespace NLGUI
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Add our own request terminate handler. Nb: pass as param a UID, not the ptr */
|
/* Add our own request terminate handler. Nb: pass as param a UID, not the ptr */
|
||||||
|
/* FIX ME - every connection is appending a new callback to the list, and its never removed (Vinicius Arroyo)*/
|
||||||
HTNet_addAfter(requestTerminater, NULL, (void*)(size_t)_GroupHtmlUID, HT_ALL, HT_FILTER_LAST);
|
HTNet_addAfter(requestTerminater, NULL, (void*)(size_t)_GroupHtmlUID, HT_ALL, HT_FILTER_LAST);
|
||||||
|
|
||||||
/* Set the timeout for long we are going to wait for a response */
|
/* Set the timeout for long we are going to wait for a response */
|
||||||
|
@ -4003,6 +4004,7 @@ namespace NLGUI
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Add our own request terminate handler. Nb: pass as param a UID, not the ptr */
|
/* Add our own request terminate handler. Nb: pass as param a UID, not the ptr */
|
||||||
|
/* FIX ME - every connection is appending a new callback to the list, and its never removed (Vinicius Arroyo)*/
|
||||||
HTNet_addAfter(requestTerminater, NULL, (void*)(size_t)_GroupHtmlUID, HT_ALL, HT_FILTER_LAST);
|
HTNet_addAfter(requestTerminater, NULL, (void*)(size_t)_GroupHtmlUID, HT_ALL, HT_FILTER_LAST);
|
||||||
|
|
||||||
/* Start the first request */
|
/* Start the first request */
|
||||||
|
@ -4089,17 +4091,19 @@ namespace NLGUI
|
||||||
|
|
||||||
// ***************************************************************************
|
// ***************************************************************************
|
||||||
|
|
||||||
void CGroupHTML::requestTerminated(HTRequest * /* request */)
|
void CGroupHTML::requestTerminated(HTRequest * request )
|
||||||
{
|
{
|
||||||
// set the browser as complete
|
// this callback is being called for every request terminated
|
||||||
_Browsing = false;
|
if( request == _LibWWW->Request ){
|
||||||
updateRefreshButton();
|
// set the browser as complete
|
||||||
// check that the title is set, or reset it (in the case the page
|
_Browsing = false;
|
||||||
// does not provide a title)
|
updateRefreshButton();
|
||||||
if (_TitleString.empty())
|
// check that the title is set, or reset it (in the case the page
|
||||||
{
|
// does not provide a title)
|
||||||
setTitle(_TitlePrefix);
|
if (_TitleString.empty())
|
||||||
}
|
{
|
||||||
|
setTitle(_TitlePrefix);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ***************************************************************************
|
// ***************************************************************************
|
||||||
|
|
Loading…
Reference in a new issue