mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-29 13:32:33 +02:00
gui: Remove warning "unused variable 'wallet_model'"
This commit is contained in:
parent
4e8b564df0
commit
c279a81e9c
@ -905,12 +905,8 @@ void RPCConsole::on_lineEdit_returnPressed()
|
||||
|
||||
cmdBeforeBrowsing = QString();
|
||||
|
||||
WalletModel* wallet_model{nullptr};
|
||||
#ifdef ENABLE_WALLET
|
||||
const int wallet_index = ui->WalletSelector->currentIndex();
|
||||
if (wallet_index > 0) {
|
||||
wallet_model = ui->WalletSelector->itemData(wallet_index).value<WalletModel*>();
|
||||
}
|
||||
WalletModel* wallet_model = ui->WalletSelector->currentData().value<WalletModel*>();
|
||||
|
||||
if (m_last_wallet_model != wallet_model) {
|
||||
if (wallet_model) {
|
||||
|
Loading…
Reference in New Issue
Block a user