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:
parent
112828bb55
commit
5e636059b3
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue