diff options
author | John Thacker <johnthacker@gmail.com> | 2023-09-01 07:56:58 -0400 |
---|---|---|
committer | AndersBroman <a.broman58@gmail.com> | 2023-09-03 07:23:50 +0000 |
commit | 1acc3ae5adccd6a9da9d4bd8ccc048de36b3fe1b (patch) | |
tree | b6cf4afc04aedca5697def135103f7518c14bb51 /ui/qt/utils/field_information.cpp | |
parent | cc83f62a4d49006db43f0709d7493011776d4260 (diff) |
Qt: Call EditResolvedName from the PacketList
Allow Edit Resolved Name to be called from the packet details,
for fields that are IPv4 or IPv6 addresses.
Add to the combobox of possible addresses to edit all (non hidden)
IPv4 or IPv6 fields. Set the index of the combobox to the selected
column (if it is an address, and the packet list has focus or was
selected), or to the currently selected field (if selected from
the packet details, and an IP address.) Check other types of
address columns (such as network address and custom columns) to
see if they match the unresolved string for an IP address.
Don't both redissecting the packets if the network resolution is
off, because it won't do anything. There's a use case for editing
several names before turning on the preference to avoid processor
intensive redissects.
Fix #17284
Diffstat (limited to 'ui/qt/utils/field_information.cpp')
-rw-r--r-- | ui/qt/utils/field_information.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/utils/field_information.cpp b/ui/qt/utils/field_information.cpp index 584975601b..395bde2fa8 100644 --- a/ui/qt/utils/field_information.cpp +++ b/ui/qt/utils/field_information.cpp @@ -18,7 +18,7 @@ FieldInformation::FieldInformation(field_info *fi, QObject * parent) parent_fi_ = NULL; } -FieldInformation::FieldInformation(ProtoNode *node, QObject * parent) +FieldInformation::FieldInformation(const ProtoNode *node, QObject * parent) :QObject(parent) { fi_ = NULL; |