mirror of
https://github.com/YACReader/yacreader
synced 2025-07-22 23:15:14 -04:00
fixed YACReaderFlowGL::remove when the last element is removed
This commit is contained in:
@ -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--;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user