From 226c121fc9bd84962fc17daafdb4684882119400 Mon Sep 17 00:00:00 2001 From: Aditya Kulkarni Date: Mon, 5 Nov 2018 10:16:41 -0800 Subject: [PATCH] small fixes for zboard.net support --- src/mainwindow.cpp | 4 +++- src/mainwindow.ui | 16 +++++++++++----- src/zboard.ui | 9 +++++++-- 3 files changed, 21 insertions(+), 8 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 2c41619..1205f25 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -442,6 +442,8 @@ void MainWindow::postToZBoard() { } zb.feeAmount->setText(Settings::getInstance()->getZECUSDDisplayFormat(Utils::getZboardAmount() + Utils::getMinerFee())); + zb.memoTxt->setFocus(); + if (d.exec() == QDialog::Accepted) { // Create a transaction. Tx tx; @@ -454,7 +456,7 @@ void MainWindow::postToZBoard() { auto memo = zb.memoTxt->toPlainText().trimmed(); if (!zb.postAs->text().trimmed().isEmpty()) - memo = "Name::" + zb.postAs->text().trimmed() + " " + memo; + memo = zb.postAs->text().trimmed() + "::" + memo; tx.toAddrs.push_back(ToFields{ Utils::getZboardAddr(), Utils::getZboardAmount(), memo, memo.toUtf8().toHex() }); tx.fee = Utils::getMinerFee(); diff --git a/src/mainwindow.ui b/src/mainwindow.ui index 2febbd1..6534465 100644 --- a/src/mainwindow.ui +++ b/src/mainwindow.ui @@ -316,8 +316,8 @@ 0 0 - 843 - 363 + 841 + 321 @@ -718,7 +718,7 @@ 0 0 889 - 21 + 22 @@ -741,7 +741,7 @@ - Apps + &Apps @@ -783,6 +783,9 @@ Sapling &Turnstile + + Ctrl+A, Ctrl+T + @@ -796,7 +799,10 @@ - z-board.net + &z-board.net + + + Ctrl+A, Ctrl+Z diff --git a/src/zboard.ui b/src/zboard.ui index ccacbe7..a37e8f7 100644 --- a/src/zboard.ui +++ b/src/zboard.ui @@ -6,8 +6,8 @@ 0 0 - 520 - 376 + 588 + 431 @@ -117,6 +117,11 @@ + + fromAddr + postAs + memoTxt +