aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/packet_list.cpp
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>2016-09-13 22:33:54 -0500
committerAnders Broman <a.broman58@gmail.com>2016-09-15 04:13:59 +0000
commite8e193694a35779eaf506120ecd2567c98f652ac (patch)
treeac0d7dec782f7fee88129700dae81e06dcd9b191 /ui/qt/packet_list.cpp
parentc711bc64573e20e343f343a53ad4d1d50add433d (diff)
Qt: Option to copy bytes to clipboard as Escaped String
Some users need to copy the bytes to a Python script for sending out through a raw socket. While they can modify a plain hex dump, having Wireshark copy directly as a Python string makes their work easier. This format also works with Bash, so it is called "Escaped String". E.g.: "\x55\xb5\xd4\x67\x03" Change-Id: I0b6a5eb2e348f686397afda76095aaa2fb85c18d Reviewed-on: https://code.wireshark.org/review/17696 Petri-Dish: Gilbert Ramirez <gram@alumni.rice.edu> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/qt/packet_list.cpp')
-rw-r--r--ui/qt/packet_list.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/qt/packet_list.cpp b/ui/qt/packet_list.cpp
index 5266af072c..7b71866e08 100644
--- a/ui/qt/packet_list.cpp
+++ b/ui/qt/packet_list.cpp
@@ -369,6 +369,9 @@ PacketList::PacketList(QWidget *parent) :
action = window()->findChild<QAction *>("actionContextCopyBytesBinary");
submenu->addAction(action);
copy_actions_ << action;
+ action = window()->findChild<QAction *>("actionContextCopyBytesEscapedString");
+ submenu->addAction(action);
+ copy_actions_ << action;
ctx_menu_.addSeparator();
ctx_menu_.addMenu(&proto_prefs_menu_);