1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-28 03:06:20 -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:
Witold Filipczyk 2009-05-22 21:25:13 +02:00 committed by Kalle Olavi Niemitalo
parent 3d4919507a
commit 68ccb4513d

View File

@ -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);
}