From cfa4133ce53db2de8791ee7fa758d50a438083a6 Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Thu, 14 Dec 2017 03:29:55 +0000 Subject: [PATCH] GUI: RPCConsole: Log wallet changes --- src/qt/rpcconsole.cpp | 9 +++++++++ src/qt/rpcconsole.h | 1 + 2 files changed, 10 insertions(+) diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp index f1f9f6fc4c..29b8c4d03a 100644 --- a/src/qt/rpcconsole.cpp +++ b/src/qt/rpcconsole.cpp @@ -893,6 +893,15 @@ void RPCConsole::on_lineEdit_returnPressed() if (wallet_index > 0) { walletID = (QString)ui->WalletSelector->itemData(wallet_index).value(); } + + if (m_last_wallet_id != walletID) { + if (walletID.isEmpty()) { + message(CMD_REQUEST, tr("Executing command without any wallet")); + } else { + message(CMD_REQUEST, tr("Executing command using \"%1\" wallet").arg(walletID)); + } + m_last_wallet_id = walletID; + } #endif message(CMD_REQUEST, QString::fromStdString(strFilteredCmd)); diff --git a/src/qt/rpcconsole.h b/src/qt/rpcconsole.h index 5a22be3987..c97260b2c3 100644 --- a/src/qt/rpcconsole.h +++ b/src/qt/rpcconsole.h @@ -153,6 +153,7 @@ private: int consoleFontSize; QCompleter *autoCompleter; QThread thread; + QString m_last_wallet_id; /** Update UI with latest network info from model. */ void updateNetworkState();