changeset 2141:350af350b840

Cancel the expected URL after offering a download (BUG#982) After showing the download dialog, the original link remained unresponsive.
author Jorge Arellano Cid <jcid@dillo.org>
date Di, 19 Jul 2011 15:28:14 -0400
parents 3b688863e704
children 39732d8f7abd
files src/capi.c src/nav.c
diffstat 2 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/capi.c	Mo Jul 18 22:42:50 2011 +0000
+++ b/src/capi.c	Di Jul 19 15:28:14 2011 -0400
@@ -758,6 +758,7 @@
             a_Chain_bcb(OpAbort, Info, NULL, NULL);
             /* remove the cache entry for this URL */
             a_Cache_entry_remove_by_url(conn->url);
+            a_Nav_cancel_expect_if_eq(conn->bw, conn->url);
             Capi_conn_unref(conn);
             dFree(Info);
             break;
--- a/src/nav.c	Mo Jul 18 22:42:50 2011 +0000
+++ b/src/nav.c	Di Jul 19 15:28:14 2011 -0400
@@ -252,6 +252,7 @@
       a_Url_free(bw->nav_expect_url);
       bw->nav_expect_url = NULL;
       bw->nav_expecting = FALSE;
+      a_UIcmd_set_buttons_sens(bw);
    }
    if (bw->meta_refresh_status > 0)
       --bw->meta_refresh_status;