From bb3da8fe410285887f22679c6f08a1f40bcfac8f Mon Sep 17 00:00:00 2001 From: Jarol Rodriguez Date: Fri, 19 Feb 2021 01:04:18 -0500 Subject: 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. --- src/qt/receivecoinsdialog.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/qt/receivecoinsdialog.h') 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(); -- cgit v1.2.3