Browse Source

#79 - Prevent crash if zcash.conf is not found,

import_zecw
Aditya Kulkarni 5 years ago
parent
commit
4f4d6efe3b
  1. 5
      src/mainwindow.cpp

5
src/mainwindow.cpp

@ -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);

Loading…
Cancel
Save