mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-04 01:08:26 +02:00
[ui] GraphEditor: Search indexes remain at null when no filtered nodes exist as per search text
This commit is contained in:
parent
2b538c235e
commit
49b1e897ac
1 changed files with 6 additions and 0 deletions
|
@ -1142,6 +1142,9 @@ Item {
|
|||
/**
|
||||
* Moves the navigation index forwards and focuses on the next node as per index.
|
||||
*/
|
||||
if (!filteredNodes.count)
|
||||
return
|
||||
|
||||
navigation.currentIndex++
|
||||
if (navigation.currentIndex === filteredNodes.count)
|
||||
navigation.currentIndex = 0
|
||||
|
@ -1152,6 +1155,9 @@ Item {
|
|||
/**
|
||||
* Moves the navigation index backwards and focuses on the previous node as per index.
|
||||
*/
|
||||
if (!filteredNodes.count)
|
||||
return
|
||||
|
||||
navigation.currentIndex--
|
||||
if (navigation.currentIndex === -1)
|
||||
navigation.currentIndex = filteredNodes.count - 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue