Qt: Clear the packet list selection before freezing it.
authorGerald Combs <gerald@wireshark.org>
Tue, 21 Jun 2016 22:13:30 +0000 (15:13 -0700)
committerAnders Broman <a.broman58@gmail.com>
Wed, 22 Jun 2016 05:00:17 +0000 (05:00 +0000)
commitc664f72f36ed1ac4e50c020cd3afb1ccf55094c8
treef98aa3ef83cf9487acfe6184355c0965ff80c26b
parentdebbf7e9308fa1e38c0f819868f7a0e766001946
Qt: Clear the packet list selection before freezing it.

Call selectionModel()->clear() before removing our model. This will
hopefully make sure we don't end up with an invalid selection in
selectionChanged().

Clear the selection model before clearing the model while we're here.

Change-Id: I1007eeaa480afa0fb31dafc15a49ca6c247b30c8
Reviewed-on: https://code.wireshark.org/review/16062
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Kenny Root <kenny@the-b.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
ui/qt/packet_list.cpp