We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e8b564 commit c279a81Copy full SHA for c279a81
src/qt/rpcconsole.cpp
@@ -905,12 +905,8 @@ void RPCConsole::on_lineEdit_returnPressed()
905
906
cmdBeforeBrowsing = QString();
907
908
- WalletModel* wallet_model{nullptr};
909
#ifdef ENABLE_WALLET
910
- const int wallet_index = ui->WalletSelector->currentIndex();
911
- if (wallet_index > 0) {
912
- wallet_model = ui->WalletSelector->itemData(wallet_index).value<WalletModel*>();
913
- }
+ WalletModel* wallet_model = ui->WalletSelector->currentData().value<WalletModel*>();
914
915
if (m_last_wallet_model != wallet_model) {
916
if (wallet_model) {
0 commit comments