Show syncing warning when sending tx

This commit is contained in:
Aditya Kulkarni
2018-11-15 17:32:01 -08:00
parent 7939acd2ea
commit 848f6d337b
2 changed files with 16 additions and 0 deletions

View File

@@ -146,6 +146,19 @@
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="syncingWarning">
<property name="styleSheet">
<string notr="true">color: red;</string>
</property>
<property name="text">
<string>You are sending a transaction while your node is still syncing. This may not work.</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="warningLabel">
<property name="styleSheet">

View File

@@ -505,6 +505,9 @@ bool MainWindow::confirmTx(Tx tx) {
}
}
// Syncing warning
confirm.syncingWarning->setVisible(Settings::getInstance()->isSyncing());
// And FromAddress in the confirm dialog
confirm.sendFrom->setText(fnSplitAddressForWrap(tx.fromAddr));