aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2016-06-24 13:47:54 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2016-06-24 13:48:16 +0200
commitaf2421c291c42fd0119bf27261fdeeba93cadbcc (patch)
tree208e5f2e0b80e20c2f8a9e3c50939692e8bdd38f /src
parent5cd35d3dbc8b5079d6d695ad28418467d3b3b2eb (diff)
parentd7828abd5b08ae17a42a7b8efe3b546fe2d09f4b (diff)
Merge #8256: BUG: bitcoin-qt crash
d7828ab check that transactionView->selectionModel()->selectedRows(0) exists (fsb4000)
Diffstat (limited to 'src')
-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;