Qt: Sort traffic table default protos

When changing conversation types in Conversations and endpoint types
in Endpoints the tabs will be arranged alphabetically, so ensure that
the default protos also are alphabetically.

Change-Id: Ib0e8ffb744f63867e93282b7a81b1c11b0ee3dc4
Reviewed-on: https://code.wireshark.org/review/13107
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
This commit is contained in:
Stig Bjørlykke 2016-01-07 13:31:28 +01:00
parent f3ae6c9c5c
commit 5dcce344ac
1 changed files with 2 additions and 2 deletions

View File

@ -100,8 +100,8 @@ TrafficTableDialog::~TrafficTableDialog()
const QList<int> TrafficTableDialog::defaultProtos() const
{
// Reasonable defaults?
return QList<int>() << proto_get_id_by_filter_name( "tcp" ) << proto_get_id_by_filter_name( "eth" )
<< proto_get_id_by_filter_name( "ip" ) << proto_get_id_by_filter_name( "ipv6" )
return QList<int>() << proto_get_id_by_filter_name( "eth" ) << proto_get_id_by_filter_name( "ip" )
<< proto_get_id_by_filter_name( "ipv6" ) << proto_get_id_by_filter_name( "tcp" )
<< proto_get_id_by_filter_name( "udp" );
}