Changeset View
Changeset View
Standalone View
Standalone View
src/qt/rpcconsole.cpp
Show First 20 Lines • Show All 1,053 Lines • ▼ Show 20 Lines | if (!cmd.isEmpty()) { | ||||
return; | return; | ||||
} | } | ||||
ui->lineEdit->clear(); | ui->lineEdit->clear(); | ||||
cmdBeforeBrowsing = QString(); | cmdBeforeBrowsing = QString(); | ||||
#ifdef ENABLE_WALLET | #ifdef ENABLE_WALLET | ||||
WalletModel *wallet_model{nullptr}; | WalletModel *wallet_model = | ||||
const int wallet_index = ui->WalletSelector->currentIndex(); | ui->WalletSelector->currentData().value<WalletModel *>(); | ||||
if (wallet_index > 0) { | |||||
wallet_model = ui->WalletSelector->itemData(wallet_index) | |||||
.value<WalletModel *>(); | |||||
} | |||||
if (m_last_wallet_model != wallet_model) { | if (m_last_wallet_model != wallet_model) { | ||||
if (wallet_model) { | if (wallet_model) { | ||||
message(CMD_REQUEST, tr("Executing command using \"%1\" wallet") | message(CMD_REQUEST, tr("Executing command using \"%1\" wallet") | ||||
.arg(wallet_model->getWalletName())); | .arg(wallet_model->getWalletName())); | ||||
} else { | } else { | ||||
message(CMD_REQUEST, | message(CMD_REQUEST, | ||||
tr("Executing command without any wallet")); | tr("Executing command without any wallet")); | ||||
▲ Show 20 Lines • Show All 411 Lines • Show Last 20 Lines |