Expert Info: Displays comment of each packet in the expert information tab

Bug: 15516
Change-Id: I7e492576cfa53df6dddd016ecc3d977e57bf0f
Reviewed-on: https://code.wireshark.org/review/32931
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Petri-Dish: Jaap Keuter <jaap.keuter@xs4all.nl>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Zachary 2019-04-22 17:16:36 -04:00 committed by Anders Broman
parent 112828bb55
commit 5e636059b3
1 changed files with 6 additions and 0 deletions

View File

@ -249,6 +249,8 @@ QVariant ExpertInfoModel::data(const QModelIndex &index, int role) const
case colSummary:
if (index.parent().isValid())
{
if (item->severity() == PI_COMMENT)
return item->summary().simplified();
if (group_by_summary_)
return item->colInfo().simplified();
@ -257,7 +259,11 @@ QVariant ExpertInfoModel::data(const QModelIndex &index, int role) const
else
{
if (group_by_summary_)
{
if (item->severity() == PI_COMMENT)
return "Packet comments listed below.";
return item->summary().simplified();
}
}
return QVariant();
case colGroup: