mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-17 15:21:30 +02:00
revuo: fix bounds check
This commit is contained in:
@@ -92,7 +92,7 @@ void RevuoWidget::updateItems(const QList<QSharedPointer<RevuoItem>> &items) {
|
||||
}
|
||||
|
||||
void RevuoWidget::onSelectItem(int index) {
|
||||
if (index >= m_items.length()) {
|
||||
if (index >= m_items.length() || index < 0) {
|
||||
ui->textBrowser->setText("<h4>No item selected</h4>");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user