aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2018-07-05 23:08:37 +0200
committerAnders Broman <a.broman58@gmail.com>2018-07-06 07:27:55 +0000
commit7a3f397c2b746677f7f7e326b92bd9620b9a15dd (patch)
tree61c4e273a15c876c798c6ce0eefcda460fd6b47e
parent59192f79fc226b77ef71b9012e0e867002882aaf (diff)
Qt: fix wrong Follow Stream text position after changing mode
When switching from ASCII to other modes (such as Hex), the previous text to packet number mapping was not cleared. This resulted in using the wrong packet number when hovering over the packet data. Change-Id: I29ba1786925490c33fc9181373a31d51f5091642 Reviewed-on: https://code.wireshark.org/review/28614 Petri-Dish: Peter Wu <peter@lekensteyn.nl> Reviewed-by: Anders Broman <a.broman58@gmail.com>
-rw-r--r--ui/qt/follow_stream_dialog.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/qt/follow_stream_dialog.cpp b/ui/qt/follow_stream_dialog.cpp
index 7f79e6a67e..3f3f88d411 100644
--- a/ui/qt/follow_stream_dialog.cpp
+++ b/ui/qt/follow_stream_dialog.cpp
@@ -439,8 +439,10 @@ FollowStreamDialog::readStream()
{
// Only clear the display if we're going to refill it
- if (save_as_ == false)
+ if (save_as_ == false) {
ui->teStreamContent->clear();
+ text_pos_to_packet_.clear();
+ }
truncated_ = false;
frs_return_t ret;