aboutsummaryrefslogtreecommitdiff
path: root/src/qt/transactionview.cpp
diff options
context:
space:
mode:
authorfsb4000 <fsb4000@yandex.ru>2016-06-24 17:05:45 +0700
committerfsb4000 <fsb4000@yandex.ru>2016-06-24 18:08:32 +0700
commitd7828abd5b08ae17a42a7b8efe3b546fe2d09f4b (patch)
tree0a70881de33b3c615356a51ea6117ea5839aa79f /src/qt/transactionview.cpp
parent08338942b50f915add72156e02a2131310d56e45 (diff)
check that transactionView->selectionModel()->selectedRows(0) exists
Diffstat (limited to 'src/qt/transactionview.cpp')
-rw-r--r--src/qt/transactionview.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qt/transactionview.cpp b/src/qt/transactionview.cpp
index 199a7b2d77..48cf940502 100644
--- a/src/qt/transactionview.cpp
+++ b/src/qt/transactionview.cpp
@@ -365,6 +365,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;