aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/decode_as_dlg.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2013-11-08 09:10:36 +0000
committerGuy Harris <guy@alum.mit.edu>2013-11-08 09:10:36 +0000
commit011ee9939460924c6cc9f875fad64c3c2c2cf167 (patch)
tree380fc570711051acffbaf7729dd0c121536125b3 /ui/gtk/decode_as_dlg.c
parent88d0e909a23a56f5fe5d6869bc65f4867bf6dc91 (diff)
What matters is the encapsulation type, not the file type, so just test
for WTAP_ENCAP_BER, not for WTAP_FILE_BER. svn path=/trunk/; revision=53164
Diffstat (limited to 'ui/gtk/decode_as_dlg.c')
-rw-r--r--ui/gtk/decode_as_dlg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/gtk/decode_as_dlg.c b/ui/gtk/decode_as_dlg.c
index 67241c1185..e85540a17c 100644
--- a/ui/gtk/decode_as_dlg.c
+++ b/ui/gtk/decode_as_dlg.c
@@ -1932,8 +1932,8 @@ decode_as_ok(void)
return (cfile.edt->pi.ethertype != G_MAXINT) || cfile.edt->pi.ipproto ||
cfile.edt->pi.ptype == PT_TCP || cfile.edt->pi.ptype == PT_UDP ||
cfile.edt->pi.mpls_label ||
- cfile.cd_t == WTAP_FILE_BER ||
cfile.edt->pi.ptype == PT_BLUETOOTH ||
+ wtap_file_encap(cfile.wth) == WTAP_ENCAP_BER ||
wtap_file_encap(cfile.wth) == WTAP_ENCAP_BLUETOOTH_H4 ||
wtap_file_encap(cfile.wth) == WTAP_ENCAP_BLUETOOTH_H4_WITH_PHDR;
}