diff options
| author | Luke Dashjr <[email protected]> | 2017-12-14 03:29:55 +0000 |
|---|---|---|
| committer | Jonas Schnelli <[email protected]> | 2018-03-26 18:40:27 +0700 |
| commit | cfa4133ce53db2de8791ee7fa758d50a438083a6 (patch) | |
| tree | 3f01d7e6f290441da2852f4caaeef199778f9a18 /src/qt/rpcconsole.cpp | |
| parent | Qt: Get wallet name from WalletModel rather than passing it around (diff) | |
| download | discoin-cfa4133ce53db2de8791ee7fa758d50a438083a6.tar.xz discoin-cfa4133ce53db2de8791ee7fa758d50a438083a6.zip | |
GUI: RPCConsole: Log wallet changes
Diffstat (limited to 'src/qt/rpcconsole.cpp')
| -rw-r--r-- | src/qt/rpcconsole.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp index f1f9f6fc4..29b8c4d03 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<QString>(); } + + 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)); |