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

View File

@@ -316,8 +316,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>843</width>
<height>363</height>
<width>841</width>
<height>321</height>
</rect>
</property>
<layout class="QVBoxLayout" name="sendToLayout">
@@ -718,7 +718,7 @@
<x>0</x>
<y>0</y>
<width>889</width>
<height>21</height>
<height>22</height>
</rect>
</property>
<widget class="QMenu" name="menuFile">
@@ -741,7 +741,7 @@
</widget>
<widget class="QMenu" name="menuApps">
<property name="title">
<string>Apps</string>
<string>&amp;Apps</string>
</property>
<addaction name="actionTurnstile_Migration"/>
<addaction name="actionz_board_net"/>
@@ -783,6 +783,9 @@
<property name="text">
<string>Sapling &amp;Turnstile</string>
</property>
<property name="shortcut">
<string>Ctrl+A, Ctrl+T</string>
</property>
</action>
<action name="actionImport_Private_Key">
<property name="text">
@@ -796,7 +799,10 @@
</action>
<action name="actionz_board_net">
<property name="text">
<string>z-board.net</string>
<string>&amp;z-board.net</string>
</property>
<property name="shortcut">
<string>Ctrl+A, Ctrl+Z</string>
</property>
</action>
</widget>

View File

@@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>520</width>
<height>376</height>
<width>588</width>
<height>431</height>
</rect>
</property>
<property name="windowTitle">
@@ -117,6 +117,11 @@
</item>
</layout>
</widget>
<tabstops>
<tabstop>fromAddr</tabstop>
<tabstop>postAs</tabstop>
<tabstop>memoTxt</tabstop>
</tabstops>
<resources/>
<connections>
<connection>