small fixes for zboard.net support

This commit is contained in:
Aditya Kulkarni
2018-11-05 10:16:41 -08:00
parent 47a01a0995
commit 226c121fc9
3 changed files with 21 additions and 8 deletions

View File

@@ -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();