From 2559844856e7f1e32e270ef11a1e2066926abedc Mon Sep 17 00:00:00 2001 From: Aditya Kulkarni Date: Fri, 29 Mar 2019 15:13:11 -0700 Subject: [PATCH] Sapling addresses from start --- src/mainwindow.cpp | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index addfcc5..cdf790a 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1291,12 +1291,6 @@ void MainWindow::setupRecieveTab() { return; if (ui->rdioZSAddr->isChecked()) { - if (!Settings::getInstance()->isSaplingActive()) { - QMessageBox::critical(this, tr("Sapling not active"), - tr("Your node is still syncing, and has not synced past the sapling activation block yet. Can't create a new Sapling address until sapling is active.\n\nPlease wait for your node to sync."), - QMessageBox::Ok); - return; - } addNewZaddr(true); } else if (ui->rdioTAddr->isChecked()) { addNewTAddr(); @@ -1306,12 +1300,8 @@ void MainWindow::setupRecieveTab() { // Focus enter for the Receive Tab QObject::connect(ui->tabWidget, &QTabWidget::currentChanged, [=] (int tab) { if (tab == 2) { - // Switched to receive tab, so update everything. - - // Hide Sapling radio button if Sapling is not active - if (Settings::getInstance()->isSaplingActive()) { - ui->rdioZSAddr->setChecked(true); - } + // Switched to receive tab, select the z-addr radio button + ui->rdioZSAddr->setChecked(true); // And then select the first one ui->listRecieveAddresses->setCurrentIndex(0);