gui: Remove warning "unused variable 'wallet_model'"
This commit is contained in:
1 parent
4e8b564df0
commit
c279a81e9c
1 file changed
+1
-5
@@ -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) {
|
||||||
|
|||||||
Reference in new issue
Block a user