diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index d430155..29533d0 100644 --- a/src/mainwindow.cpp +++ b/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);