Skip to content

Commit af2421c

Browse files
committed
Merge #8256: BUG: bitcoin-qt crash
d7828ab check that transactionView->selectionModel()->selectedRows(0) exists (fsb4000)
2 parents 5cd35d3 + d7828ab commit af2421c

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)