diff options
author | Gerald Combs <gerald@wireshark.org> | 2016-05-25 14:39:20 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2016-05-25 22:56:38 +0000 |
commit | b9487a7fac74daa89346f44c1d8b800a436ddb15 (patch) | |
tree | 8876ce34b1a5503ad3618934618e6a6faab556f0 /ui/qt/sequence_dialog.cpp | |
parent | f4748af360f816ae955ad44216f7ed0dea3af07f (diff) | |
download | wireshark-b9487a7fac74daa89346f44c1d8b800a436ddb15.tar.gz |
Qt: Escape sequence dialog hint text.
Escape HTML markup before showing hint text. Otherwise things like SIP
addresses won't be displayed correctly.
Change-Id: I5ceae978af0ff9e253dae4d3ec8ad9da20948de0
Reviewed-on: https://code.wireshark.org/review/15561
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/sequence_dialog.cpp')
-rw-r--r-- | ui/qt/sequence_dialog.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/qt/sequence_dialog.cpp b/ui/qt/sequence_dialog.cpp index 4bd5d9d548..e948acfc8a 100644 --- a/ui/qt/sequence_dialog.cpp +++ b/ui/qt/sequence_dialog.cpp @@ -288,7 +288,8 @@ void SequenceDialog::mouseMoved(QMouseEvent *event) seq_analysis_item_t *sai = seq_diagram_->itemForPosY(event->pos().y()); if (sai) { packet_num_ = sai->frame_number; - hint = QString("Packet %1: %2").arg(packet_num_).arg(sai->comment); + QString raw_comment = sai->comment; + hint = QString("Packet %1: %2").arg(packet_num_).arg(raw_comment.toHtmlEscaped()); } } |