gui: Remove warning "unused variable 'wallet_model'"

This commit is contained in:
João Barbosa authored and Sjors Provoost committed 2020-01-16 14:27:43 +01:00
1 parent 4e8b564df0
commit c279a81e9c
1 file changed
+1 -5
+1 -5
View File
@@ -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) {