diff --git a/src/qt/walletview.h b/src/qt/walletview.h index 71c8368bfa2..eebc163624f 100644 --- a/src/qt/walletview.h +++ b/src/qt/walletview.h @@ -42,7 +42,7 @@ class WalletView : public QStackedWidget The client model represents the part of the core that communicates with the P2P network, and is wallet-agnostic. */ void setClientModel(ClientModel *clientModel); - WalletModel *getWalletModel() { return walletModel; } + WalletModel* getWalletModel() const noexcept { return walletModel; } bool handlePaymentRequest(const SendCoinsRecipient& recipient);