While rescanning  wenn i click File>open wallet  in time wenn mouse cursor touch "open wallet" item app just immediately crashed.
V0.18.0 
#endif 
        unitDisplayControl->setOptionsModel(_clientModel->getOptionsModel());
        OptionsModel* optionsModel = _clientModel->getOptionsModel();
        if (optionsModel && trayIcon) {
            
            connect(optionsModel, &OptionsModel::hideTrayIconChanged, this, &BitcoinGUI::setTrayIconVisible);
            
            setTrayIconVisible(optionsModel->getHideTrayIcon());
        }
    } else {
        
        toggleHideAction->setEnabled(false);
        if(trayIconMenu)
        {
            
            trayIconMenu->clear();
        }
        
        rpcConsole->setClientModel(nullptr);
#ifdef ENABLE_WALLET
        if (walletFrame)
        {
            walletFrame->setClientModel(nullptr);
        }
#endif 
        unitDisplayControl->setOptionsModel(nullptr);
    }
}
#ifdef ENABLE_WALLET
void BitcoinGUI::setWalletController(WalletController* wallet_controller)