diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 2016-09-13 22:33:54 -0500 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2016-09-15 04:13:59 +0000 |
commit | e8e193694a35779eaf506120ecd2567c98f652ac (patch) | |
tree | ac0d7dec782f7fee88129700dae81e06dcd9b191 /ui/qt/proto_tree.cpp | |
parent | c711bc64573e20e343f343a53ad4d1d50add433d (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/proto_tree.cpp')
-rw-r--r-- | ui/qt/proto_tree.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/qt/proto_tree.cpp b/ui/qt/proto_tree.cpp index 93c2ad41fb..1527172834 100644 --- a/ui/qt/proto_tree.cpp +++ b/ui/qt/proto_tree.cpp @@ -241,6 +241,9 @@ ProtoTree::ProtoTree(QWidget *parent) : action = window()->findChild<QAction *>("actionContextCopyBytesBinary"); submenu->addAction(action); copy_actions_ << action; + action = window()->findChild<QAction *>("actionContextCopyBytesEscapedString"); + submenu->addAction(action); + copy_actions_ << action; action = window()->findChild<QAction *>("actionContextShowPacketBytes"); ctx_menu_.addAction(action); |