#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());
|
settings.chkAutoShield->setChecked(Settings::getInstance()->getAutoShield());
|
||||||
|
|
||||||
// Use Tor
|
// 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);
|
settings.chkTor->setChecked(isUsingTor);
|
||||||
if (rpc->getEZcashD() == nullptr) {
|
if (rpc->getEZcashD() == nullptr) {
|
||||||
settings.chkTor->setEnabled(false);
|
settings.chkTor->setEnabled(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user