diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2018-08-31 20:01:05 +0200 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2018-09-01 11:19:54 +0000 |
commit | f61cb129a96a2c094a9d85e98894f1f86896cccb (patch) | |
tree | 72aeb119469a0ddb7c1b8c0adf0372bbbdbb3bf7 /ui | |
parent | 6ac6c8881616a7009b74aeaa770111da29e1ba8d (diff) |
Qt: Improve fetching preferences from the packet list.
The Lua fake item will not give preferences for the last protocol
in the packet, so avoid this. The Lua fake item is always added when
having a Lua post-dissector, even if the post-dissector does not add
any elements to the tree.
Change-Id: I43427bf522a32feebd44f192888e73b5607e6fff
Reviewed-on: https://code.wireshark.org/review/29377
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/qt/packet_list.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/qt/packet_list.cpp b/ui/qt/packet_list.cpp index 5b275fb6cc..74b657262a 100644 --- a/ui/qt/packet_list.cpp +++ b/ui/qt/packet_list.cpp @@ -488,6 +488,7 @@ void PacketList::contextMenuEvent(QContextMenuEvent *event) if (!g_str_has_prefix(hfinfo->abbrev, "text") && !g_str_has_prefix(hfinfo->abbrev, "_ws.expert") && + !g_str_has_prefix(hfinfo->abbrev, "_ws.lua") && !g_str_has_prefix(hfinfo->abbrev, "_ws.malformed")) { if (hfinfo->parent == -1) { |