That slot is connected in ``WalletView::setWalletModel()``, which covers the walletModel check and ``WalletView::setClientModel()`` covers the clientModel check.