mirror of
https://github.com/feather-wallet/feather.git
synced 2024-12-22 03:29:24 +00:00
revuo: fix bounds check
This commit is contained in:
parent
90505aaa32
commit
8eb8d9fc34
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue