aboutsummaryrefslogtreecommitdiff
path: root/src/uicmd.cc
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2011-08-05 18:44:14 -0400
committerJorge Arellano Cid <jcid@dillo.org>2011-08-05 18:44:14 -0400
commita096c90f4a10c92ba55d8f34ad01266d05e47196 (patch)
tree9649bdb0b385ebe289bcc77187717441c96c7432 /src/uicmd.cc
parent9eff7b30b70ee13501dba6e6061cd312b3a7186e (diff)
Added an API to access the expected URL resource
This fixes a segfault bug introduced by changeset 350af350b840. By mistake the expected URL got inside the parallel handling of CCC, into a race condition with a segfault path.
Diffstat (limited to 'src/uicmd.cc')
-rw-r--r--src/uicmd.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/uicmd.cc b/src/uicmd.cc
index 32b5e8bb..6b2c0e13 100644
--- a/src/uicmd.cc
+++ b/src/uicmd.cc
@@ -1223,7 +1223,7 @@ void a_UIcmd_set_buttons_sens(BrowserWindow *bw)
BW2UI(bw)->button_set_sens(UI_BACK, sens);
// Forward
sens = (a_Nav_stack_ptr(bw) < a_Nav_stack_size(bw) - 1 &&
- !bw->nav_expecting);
+ !a_Bw_expecting(bw));
BW2UI(bw)->button_set_sens(UI_FORW, sens);
}