mirror of
https://github.com/rkd77/elinks.git
synced 2024-09-14 00:48:28 -04:00
bug 765: If set download->callback set also download->data.
In the task.c line 517 there is: if (is_in_progress_state((*download_p)->state)) { if (have_location(ses)) *download_p = &cur_loc(ses)->download; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Here the download was changed. download->data and download->callback were NULL after the assignment, but later in loading_callback only download->callback had new value. download->data was still NULL.
This commit is contained in:
parent
3d4919507a
commit
68ccb4513d
@ -535,6 +535,7 @@ loading_callback(struct download *download, struct session *ses)
|
||||
|
||||
if (d == DO_MOVE_DISPLAY) {
|
||||
download->callback = (download_callback_T *) doc_loading_callback;
|
||||
download->data = ses;
|
||||
display_timer(ses);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user