diff --git a/tests/test_gui.py b/tests/test_gui.py index ee2510c8..30210ecd 100644 --- a/tests/test_gui.py +++ b/tests/test_gui.py @@ -341,7 +341,7 @@ def testProjectEditor(qtbot, nwTempGUI, nwRef, nwTemp): newIdx = -1 for i in range(projEdit.tabReplace.listBox.topLevelItemCount()): - if projEdit.tabReplace.listBox.topLevelItem(0).text(0) == "": + if projEdit.tabReplace.listBox.topLevelItem(i).text(0) == "": newIdx = i break