From fbb3c006cd22fabd852ea42b8ce98b56f4a95efb Mon Sep 17 00:00:00 2001 From: "Jonathan \"Duke\" Leto" Date: Fri, 24 May 2019 09:09:40 -0700 Subject: [PATCH] Fix more instances of transparent address prefix assumptions --- src/mainwindow.cpp | 4 ++-- src/sendtab.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index fa878e2..eefe7e5 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1080,7 +1080,7 @@ void MainWindow::setupBalancesTab() { fnDoSendFrom(addr); }); - if (addr.startsWith("t")) { + if (addr.startsWith("R")) { auto defaultSapling = rpc->getDefaultSaplingAddress(); if (!defaultSapling.isEmpty()) { menu.addAction(tr("Shield balance to Sapling"), [=] () { @@ -1399,7 +1399,7 @@ void MainWindow::updateTAddrCombo(bool checked) { std::for_each(utxos->begin(), utxos->end(), [=](auto& utxo) { auto addr = utxo.address; - if (addr.startsWith("t") && ui->listRecieveAddresses->findText(addr) < 0) { + if (addr.startsWith("R") && ui->listRecieveAddresses->findText(addr) < 0) { auto bal = rpc->getAllBalances()->value(addr); ui->listRecieveAddresses->addItem(addr, bal); } diff --git a/src/sendtab.cpp b/src/sendtab.cpp index 13f7613..0d70be2 100644 --- a/src/sendtab.cpp +++ b/src/sendtab.cpp @@ -155,7 +155,7 @@ void MainWindow::setDefaultPayFrom() { if (maxZ >= 0) { ui->inputsCombo->setCurrentIndex(maxZ); } else { - auto maxT = findMax("t"); + auto maxT = findMax("R"); maxT = maxT >= 0 ? maxT : 0; ui->inputsCombo->setCurrentIndex(maxT); }