Bugfix Decode As dissector table selection.

Need to use UI name to select between different tables.

Change-Id: I2f25435e6ac1a2f1a15e651cd3ef1bbc9e860d89
Reviewed-on: https://code.wireshark.org/review/23952
Reviewed-by: Michael Mann <mmann78@netscape.net>
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Michael Mann 2017-10-16 21:44:21 -04:00 committed by Anders Broman
parent 3d78077f7a
commit 560945336c
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@ bool DecodeAsModel::setData(const QModelIndex &cur_index, const QVariant &value,
//grab the table values from the Decode As list because they are persistent
for (GList *cur = decode_as_list; cur; cur = cur->next) {
decode_as_t *entry = (decode_as_t *) cur->data;
if (valueStr.compare(entry->name) == 0) {
if (valueStr.compare(get_dissector_table_ui_name(entry->table_name)) == 0) {
item->tableName_ = entry->table_name;
item->tableUIName_ = get_dissector_table_ui_name(entry->table_name);