gui: Ensure tx send error highlight is visible

If sending to multiple recipients and one of the recipient fields is malformed,
the highlighted field may not be visible due to being scrolled out of view,
leading to a confusing lack of error feedback when clicking Send. To avoid this
problem ensure the first field containing an error is scrolled into view
when Send is clicked.
This commit is contained in:
bpay authored and fanquake committed 2019-08-23 19:20:48 +08:00
1 parent 442a9c6477
commit a4765bd77f
1 file changed
+2 -1
+2 -1
View File
@@ -230,8 +230,9 @@ void SendCoinsDialog::on_sendButton_clicked()
{
recipients.append(entry->getValue());
}
else
else if (valid)
{
ui->scrollArea->ensureWidgetVisible(entry);
valid = false;
}
}