Wireshark-commits: [Wireshark-commits] master 43776d4: Qt: Fix a recent files infinite loop.
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=43776d4b7391874a69a706661a71f2020c05230b
Submitter: Gerald Combs (gerald@xxxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark
Commits:
43776d4 by Gerald Combs (gerald@xxxxxxxxxxxxx):
Qt: Fix a recent files infinite loop.
QListWidget::takeItem does nothing if the row is invalid. This is the
case when we pass it ::count(). Make sure that we remove a valid row and
that our loop will terminate.
Follow-up to g174dc98.
Change-Id: I7e695cc04b2f3b5c28a8cc70af0579d787ff8737
Reviewed-on: https://code.wireshark.org/review/15417
Petri-Dish: Gerald Combs <gerald@xxxxxxxxxxxxx>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@xxxxxxxxxxxxx>
Reviewed-by: Gerald Combs <gerald@xxxxxxxxxxxxx>
Actions performed:
from 4ec84a3 Fix (spurious) checkAPIs issue
adds 43776d4 Qt: Fix a recent files infinite loop.
Summary of changes:
ui/qt/main_welcome.cpp | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)