aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/packet_list.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-07-27 15:28:50 -0700
committerGerald Combs <gerald@wireshark.org>2015-07-27 23:26:04 +0000
commit01bc31cded7290433704e9ef98a90e338c3ea28b (patch)
tree49c8784b415a201bf76e52770f361efcb085eeb7 /ui/qt/packet_list.h
parent2c798305853524083f49cd4fb03db84533c6d750 (diff)
Fixup packet list context menu behavior.
Add logic to setMenusForSelectedPacket for setting the enabled states for the "Apply As" and "Prepare A" actions. Update the PacketList context menu code to fill in the right filter at the right time. Exit out of setMenusForSelectedTreeRow if the packet list has focus so that we don't clobber the enabled states of various actions. Take the "Apply As" and "Prepare A" context menu titles from their main window counterparts. Remove actionApply_as_Filter and actionPrepare_a_Filter. Remove completed to-do items. Change-Id: I8f6f538bb7786d8df02a999f3b449dfde640e847 Reviewed-on: https://code.wireshark.org/review/9810 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/packet_list.h')
-rw-r--r--ui/qt/packet_list.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/packet_list.h b/ui/qt/packet_list.h
index 67b9022d65..da0673dc1c 100644
--- a/ui/qt/packet_list.h
+++ b/ui/qt/packet_list.h
@@ -64,7 +64,7 @@ public:
void clear();
void writeRecent(FILE *rf);
bool contextMenuActive();
- QString &getFilterFromRowAndColumn();
+ const QString &getFilterFromRowAndColumn();
void resetColorized();
QString packetComment();
void setPacketComment(QString new_comment);