Qt: Proto tree fixes
authorGerald Combs <gerald@wireshark.org>
Fri, 19 Jan 2018 19:02:07 +0000 (11:02 -0800)
committerAnders Broman <a.broman58@gmail.com>
Sun, 21 Jan 2018 14:20:32 +0000 (14:20 +0000)
commit145e3a5dc3ad2c8191696fa4748b1f3d8352252c
tree73165e9e7165b7fcf00f78e9eb070b99b482df6f
parent73f5afb75fa211a6c5a4ca189b5f4a15c87c9d73
Qt: Proto tree fixes

Make sure ProtoTree::toString stops at the right place.

Don't emit fieldSelected when we're processing a context menu event. It
doesn't appear to be needed and it triggers unwanted automatic scrolling
when prefs.gui_auto_scroll_on_expand is enabled.

Change-Id: I351a6974d07aea6fdd3eb0b5c1975a1b8d8eb7da
Reviewed-on: https://code.wireshark.org/review/25396
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
ui/qt/proto_tree.cpp
ui/qt/proto_tree.h