Skip to content

Commit 068b20b

Browse files
laanwjUdjinM6
authored andcommitted
Merge bitcoin#8256: BUG: bitcoin-qt crash
d7828ab check that transactionView->selectionModel()->selectedRows(0) exists (fsb4000)
1 parent d6e2aa8 commit 068b20b

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
@@ -404,6 +404,8 @@ void TransactionView::contextualMenu(const QPoint &point)
404404
{
405405
QModelIndex index = transactionView->indexAt(point);
406406
QModelIndexList selection = transactionView->selectionModel()->selectedRows(0);
407+
if (selection.empty())
408+
return;
407409

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

0 commit comments

Comments
 (0)