aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis Ontanon <luis.ontanon@gmail.com>2007-01-21 17:05:33 +0000
committerLuis Ontanon <luis.ontanon@gmail.com>2007-01-21 17:05:33 +0000
commita850669c19ed2038cb5c0094e716621730389abe (patch)
tree73192b6be0b8a9416d507209367f4e36922b6522
parent8bcf37dcb8667483bd8280ed07bd14df5f6d5ac4 (diff)
fix bug 1320
svn path=/trunk/; revision=20514
-rw-r--r--epan/wslua/wslua_gui.c2
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. */
}