1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Simplify code.

This commit is contained in:
Laurent MONIN 2007-11-07 12:06:24 +01:00
parent 7a74edab5a
commit 2a59f0f5bd

View File

@ -348,17 +348,14 @@ download_data_store(struct download *download, struct file_download *file_downlo
abort_download(file_download);
return;
}
if (is_in_progress_state(download->state)) {
status->downloads_in_progress = 1;
status->downloads_in_progress = is_in_progress_state(download->state);
if (status->downloads_in_progress) {
if (file_download->dlg_data)
redraw_dialog(file_download->dlg_data, 1);
return;
}
status->downloads_in_progress = 0;
if (download->state != S_OK) {
unsigned char *url = get_uri_string(file_download->uri, URI_PUBLIC);
enum connection_state state = download->state;