Merge #8256: BUG: bitcoin-qt crash
d7828ab check that transactionView->selectionModel()->selectedRows(0) exists (fsb4000)
This commit is contained in:
parent
d6e2aa843c
commit
068b20bc70
@ -404,6 +404,8 @@ void TransactionView::contextualMenu(const QPoint &point)
|
|||||||
{
|
{
|
||||||
QModelIndex index = transactionView->indexAt(point);
|
QModelIndex index = transactionView->indexAt(point);
|
||||||
QModelIndexList selection = transactionView->selectionModel()->selectedRows(0);
|
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
|
// check if transaction can be abandoned, disable context menu action in case it doesn't
|
||||||
uint256 hash;
|
uint256 hash;
|
||||||
|
Loading…
Reference in New Issue
Block a user