check that transactionView->selectionModel()->selectedRows(0) exists
This commit is contained in:
parent
08338942b5
commit
d7828abd5b
1 changed files with 2 additions and 0 deletions
|
@ -365,6 +365,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 a new issue