Skip to content

Commit cfa4133

Browse files
luke-jrjonasschnelli
authored andcommitted
GUI: RPCConsole: Log wallet changes
1 parent b6d04fc commit cfa4133

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/qt/rpcconsole.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -893,6 +893,15 @@ void RPCConsole::on_lineEdit_returnPressed()
893893
if (wallet_index > 0) {
894894
walletID = (QString)ui->WalletSelector->itemData(wallet_index).value<QString>();
895895
}
896+
897+
if (m_last_wallet_id != walletID) {
898+
if (walletID.isEmpty()) {
899+
message(CMD_REQUEST, tr("Executing command without any wallet"));
900+
} else {
901+
message(CMD_REQUEST, tr("Executing command using \"%1\" wallet").arg(walletID));
902+
}
903+
m_last_wallet_id = walletID;
904+
}
896905
#endif
897906

898907
message(CMD_REQUEST, QString::fromStdString(strFilteredCmd));

src/qt/rpcconsole.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ public Q_SLOTS:
153153
int consoleFontSize;
154154
QCompleter *autoCompleter;
155155
QThread thread;
156+
QString m_last_wallet_id;
156157

157158
/** Update UI with latest network info from model. */
158159
void updateNetworkState();

0 commit comments

Comments
 (0)