#79 - Prevent crash if zcash.conf is not found,
This commit is contained in:
@@ -394,7 +394,10 @@ void MainWindow::setupSettingsModal() {
|
||||
settings.chkAutoShield->setChecked(Settings::getInstance()->getAutoShield());
|
||||
|
||||
// Use Tor
|
||||
bool isUsingTor = !rpc->getConnection()->config->proxy.isEmpty();
|
||||
bool isUsingTor = false;
|
||||
if (rpc->getConnection() != nullptr) {
|
||||
isUsingTor = !rpc->getConnection()->config->proxy.isEmpty();
|
||||
}
|
||||
settings.chkTor->setChecked(isUsingTor);
|
||||
if (rpc->getEZcashD() == nullptr) {
|
||||
settings.chkTor->setEnabled(false);
|
||||
|
||||
Reference in New Issue
Block a user