gui: Remove warning "unused variable 'wallet_model'"

pull/764/head
João Barbosa 6 years ago committed by Sjors Provoost
parent 4e8b564df0
commit c279a81e9c
No known key found for this signature in database
GPG Key ID: 57FF9BDBCC301009

@ -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…
Cancel
Save