diff options
author | Luis Ontanon <luis.ontanon@gmail.com> | 2007-01-21 17:05:33 +0000 |
---|---|---|
committer | Luis Ontanon <luis.ontanon@gmail.com> | 2007-01-21 17:05:33 +0000 |
commit | a850669c19ed2038cb5c0094e716621730389abe (patch) | |
tree | 73192b6be0b8a9416d507209367f4e36922b6522 | |
parent | 8bcf37dcb8667483bd8280ed07bd14df5f6d5ac4 (diff) |
fix bug 1320
svn path=/trunk/; revision=20514
-rw-r--r-- | epan/wslua/wslua_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/wslua/wslua_gui.c b/epan/wslua/wslua_gui.c index c8508ed745..7a4f12e905 100644 --- a/epan/wslua/wslua_gui.c +++ b/epan/wslua/wslua_gui.c @@ -42,7 +42,7 @@ static int menu_cb_error_handler(lua_State* L) { } WSLUA_FUNCTION wslua_gui_enabled(lua_State* L) { /* Checks whether the GUI facility is enabled. */ - lua_pushboolean(L,GPOINTER_TO_INT(ops)); + lua_pushboolean(L,GPOINTER_TO_INT(ops && ops->add_button)); WSLUA_RETURN(1); /* A boolean: true if it is enabled, false if it isn't. */ } |