Skip to content

Commit

Permalink
Merge bitcoin#8256: BUG: bitcoin-qt crash
Browse files Browse the repository at this point in the history
d7828ab check that transactionView->selectionModel()->selectedRows(0) exists (fsb4000)
  • Loading branch information
laanwj authored and UdjinM6 committed Jan 5, 2018
1 parent d6e2aa8 commit 068b20b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/qt/transactionview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,8 @@ void TransactionView::contextualMenu(const QPoint &point)
{
QModelIndex index = transactionView->indexAt(point);
QModelIndexList selection = transactionView->selectionModel()->selectedRows(0);
if (selection.empty())
return;

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

0 comments on commit 068b20b

Please sign in to comment.