mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
fixed YACReaderFlowGL::remove when the last element is removed
This commit is contained in:
parent
4b6dc8893e
commit
d9d1b5ff36
@ -720,7 +720,7 @@ void YACReaderFlowGL::remove(int item)
|
||||
paths.removeAt(item);
|
||||
|
||||
//reposition current selection
|
||||
if(item < currentSelected && currentSelected != 0){
|
||||
if(item <= currentSelected && currentSelected != 0){
|
||||
currentSelected--;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user