aboutsummaryrefslogtreecommitdiff
path: root/src/qt/receivecoinsdialog.h
diff options
context:
space:
mode:
authorJarol Rodriguez <jarolrod@tutanota.com>2021-02-19 01:04:18 -0500
committerJarol Rodriguez <jarolrod@tutanota.com>2021-02-23 11:38:22 -0500
commitbb3da8fe410285887f22679c6f08a1f40bcfac8f (patch)
treec9b246ce1cc2ef105dcf192ad0f3691a8c8f69d9 /src/qt/receivecoinsdialog.h
parent78effb37f35ff09733e79497bd6b06d355272d79 (diff)
qt: Disable requests context menu actions when appropriate
The recent requests table will allow you to copy data points even if they do not exist. This PR implements checks to disable the 'copy label', 'copy message', and 'copy amount' context menu action if the respective fields are empty.
Diffstat (limited to 'src/qt/receivecoinsdialog.h')
-rw-r--r--src/qt/receivecoinsdialog.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qt/receivecoinsdialog.h b/src/qt/receivecoinsdialog.h
index f12cd8ce0c..fbbccc5a33 100644
--- a/src/qt/receivecoinsdialog.h
+++ b/src/qt/receivecoinsdialog.h
@@ -53,6 +53,9 @@ private:
Ui::ReceiveCoinsDialog *ui;
WalletModel *model;
QMenu *contextMenu;
+ QAction* copyLabelAction;
+ QAction* copyMessageAction;
+ QAction* copyAmountAction;
const PlatformStyle *platformStyle;
QModelIndex selectedRow();