From b792679a93f21195a16e043d95abf95e8f966fe1 Mon Sep 17 00:00:00 2001 From: Arjun <37590483+denverbdr@users.noreply.github.com> Date: Sun, 28 Jul 2019 11:23:30 -0700 Subject: [PATCH] Zaddr fix (#173) * Use isZAddress instead of hardcoded "z" * Make last col in Tx table resizable --- src/mainwindow.cpp | 2 +- src/rpc.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 7334cf3..ea7f52a 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -181,7 +181,7 @@ void MainWindow::restoreSavedStates() { // Explicitly set the tx table resize headers, since some previous values may have made them // non-expandable. ui->transactionsTable->horizontalHeader()->setSectionResizeMode(3, QHeaderView::Interactive); - ui->transactionsTable->horizontalHeader()->setSectionResizeMode(4, QHeaderView::Stretch); + ui->transactionsTable->horizontalHeader()->setSectionResizeMode(4, QHeaderView::Interactive); } void MainWindow::doClose() { diff --git a/src/rpc.cpp b/src/rpc.cpp index 35a073b..ec5bd8d 100644 --- a/src/rpc.cpp +++ b/src/rpc.cpp @@ -219,7 +219,7 @@ void RPC::importTPrivKey(QString addr, bool rescan, const std::function& cb) { - QString method = address.startsWith("z") ? "z_validateaddress" : "validateaddress"; + QString method = Settings::isZAddress(address) ? "z_validateaddress" : "validateaddress"; json payload = { {"jsonrpc", "1.0"},