mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-24 05:45:27 +00:00
Fixed an invalid index check (#2937)
This commit is contained in:
parent
d2243006e2
commit
8cb4f867fa
@ -71,7 +71,7 @@ void GlibcHeapWidget::updateArenas()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// check if arenas reduced or invalid index and restore the previously selected arena
|
// check if arenas reduced or invalid index and restore the previously selected arena
|
||||||
if (arenaSelectorView->count() < currentIndex || currentIndex == -1) {
|
if (arenaSelectorView->count() <= currentIndex || currentIndex == -1) {
|
||||||
currentIndex = 0;
|
currentIndex = 0;
|
||||||
}
|
}
|
||||||
arenaSelectorView->setCurrentIndex(currentIndex);
|
arenaSelectorView->setCurrentIndex(currentIndex);
|
||||||
|
Loading…
Reference in New Issue
Block a user