mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-11 20:32:35 -03:00
GUI: RPCConsole: Log wallet changes
This commit is contained in:
parent
b6d04fc7cc
commit
cfa4133ce5
2 changed files with 10 additions and 0 deletions
|
@ -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));
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue