From: tobtoht Date: Mon, 7 Oct 2024 17:15:48 +0000 (+0200) Subject: revuo: fix bounds check X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=8eb8d9fc3460b0d36afce3ea92be46e91ea2bdf4;p=gamesguru%2Ffeather.git revuo: fix bounds check --- diff --git a/src/plugins/revuo/RevuoWidget.cpp b/src/plugins/revuo/RevuoWidget.cpp index 304e04ec..84ea7f2c 100644 --- a/src/plugins/revuo/RevuoWidget.cpp +++ b/src/plugins/revuo/RevuoWidget.cpp @@ -92,7 +92,7 @@ void RevuoWidget::updateItems(const QList> &items) { } void RevuoWidget::onSelectItem(int index) { - if (index >= m_items.length()) { + if (index >= m_items.length() || index < 0) { ui->textBrowser->setText("

No item selected

"); return; }