mirror of
https://github.com/YACReader/yacreader
synced 2025-11-13 21:42:50 -05: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);
|
paths.removeAt(item);
|
||||||
|
|
||||||
//reposition current selection
|
//reposition current selection
|
||||||
if(item < currentSelected && currentSelected != 0){
|
if(item <= currentSelected && currentSelected != 0){
|
||||||
currentSelected--;
|
currentSelected--;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user