From 219ef195f577afa742bb41adb509bec7c8591e58 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Sat, 5 Jul 2003 16:23:52 +0000 Subject: [project @ 2003-07-05 16:23:52 by bursa] Improved status bar behaviour. svn path=/import/netsurf/; revision=205 --- desktop/browser.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/desktop/browser.c b/desktop/browser.c index 894f00357..523a89801 100644 --- a/desktop/browser.c +++ b/desktop/browser.c @@ -187,7 +187,7 @@ void browser_window_destroy(struct browser_window* bw) if (bw->history != NULL) { - struct history* current; + struct history* current = bw->history; while (current->earlier != NULL) current = current->earlier; @@ -588,8 +588,12 @@ void browser_window_follow_link(struct browser_window* bw, } } - if (click_type == 0 && done == 0) - browser_window_set_status(bw, ""); + if (click_type == 0 && done == 0) { + if (bw->loading_content != 0) + browser_window_set_status(bw, bw->loading_content->status_message); + else + browser_window_set_status(bw, bw->current_content->status_message); + } free(click_boxes); -- cgit v1.2.3