summaryrefslogtreecommitdiff
path: root/frontends/amiga
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2017-09-26 23:33:51 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2017-09-26 23:33:51 +0100
commit9eba2716932484329c0b687b490e38f9c9c9337d (patch)
tree4ab36c4cc04392dcdfe20f7486dd64349d167ecb /frontends/amiga
parent3f4bc9d284eaaba2bb1743328ebbffabfc34c25a (diff)
downloadnetsurf-9eba2716932484329c0b687b490e38f9c9c9337d.tar.gz
netsurf-9eba2716932484329c0b687b490e38f9c9c9337d.tar.bz2
OS3 was not checking the GA_Disabled tag value
Diffstat (limited to 'frontends/amiga')
-rw-r--r--frontends/amiga/os3support.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/frontends/amiga/os3support.c b/frontends/amiga/os3support.c
index 378bc04cc..645496b73 100644
--- a/frontends/amiga/os3support.c
+++ b/frontends/amiga/os3support.c
@@ -405,9 +405,10 @@ ULONG RefreshSetGadgetAttrsA(struct Gadget *g, struct Window *w, struct Requeste
ULONG retval;
BOOL changedisabled = FALSE;
BOOL disabled;
+ struct TagItem *ti;
if (w) {
- if (FindTagItem(GA_Disabled,tags)) {
+ if ((ti = FindTagItem(GA_Disabled,tags)) && (ti->ti_Data != FALSE)) {
changedisabled = TRUE;
disabled = g->Flags & GFLG_DISABLED;
}