Improve handling of focus switch with search widget

This commit is contained in:
Veronica Berglyd Olsen
2024-03-25 11:44:56 +01:00
parent a4d8c22cd0
commit 33e0895cdf
4 changed files with 26 additions and 34 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ def testGuiNovelTree_TreeItems(qtbot, monkeypatch, nwGUI, projPath, mockRnd):
novelView.setTreeFocus()
nwGUI.projStack.setCurrentIndex(nwGUI.idxNovelView)
nwGUI.projStack.setCurrentWidget(nwGUI.novelView)
nwGUI.rebuildIndex()
novelTree._populateTree(rootHandle=None)
assert novelTree.topLevelItemCount() == 3