Skip to content

Commit d7828ab

Browse files
committed
check that transactionView->selectionModel()->selectedRows(0) exists
1 parent 0833894 commit d7828ab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/qt/transactionview.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,8 @@ void TransactionView::contextualMenu(const QPoint &point)
365365
{
366366
QModelIndex index = transactionView->indexAt(point);
367367
QModelIndexList selection = transactionView->selectionModel()->selectedRows(0);
368+
if (selection.empty())
369+
return;
368370

369371
// check if transaction can be abandoned, disable context menu action in case it doesn't
370372
uint256 hash;

0 commit comments

Comments
 (0)