gui: Remove warning "unused variable 'wallet_model'"

This commit is contained in:
João Barbosa 2019-01-07 16:46:58 +00:00 committed by Sjors Provoost
parent 4e8b564df0
commit c279a81e9c
No known key found for this signature in database
GPG Key ID: 57FF9BDBCC301009

View File

@ -905,12 +905,8 @@ void RPCConsole::on_lineEdit_returnPressed()
cmdBeforeBrowsing = QString(); cmdBeforeBrowsing = QString();
WalletModel* wallet_model{nullptr};
#ifdef ENABLE_WALLET #ifdef ENABLE_WALLET
const int wallet_index = ui->WalletSelector->currentIndex(); WalletModel* wallet_model = 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) {