Qt: fix assertion failure when redissecting with a debug build of Qt
authorPeter Wu <peter@lekensteyn.nl>
Sun, 21 Oct 2018 16:17:28 +0000 (18:17 +0200)
committerMichael Mann <mmann78@netscape.net>
Sun, 21 Oct 2018 20:11:07 +0000 (20:11 +0000)
commitc09428bcf2fd27bce8e7a35be35c60e688fcc098
tree5de58d6c89b7b8a6386959d71fb51af1d7bfacef
parentfa903e2e03c96f5ed0dd34c9c363427a90fdcfbb
Qt: fix assertion failure when redissecting with a debug build of Qt

Opening the Follow TCP Stream dialog triggers redissection and ended up
triggering a "first <= rowCount(parent)" assertion failure. Fix the
first and end arguments to reflect the actual number of displayed rows.

Bug: 15014
Change-Id: Ic07834948a133bea752e45751ebe8be2da98a35e
Reviewed-on: https://code.wireshark.org/review/30302
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Michael Mann <mmann78@netscape.net>
ui/qt/models/packet_list_model.cpp