mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-19 20:20:00 +01:00
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:
@@ -230,8 +230,9 @@ void SendCoinsDialog::on_sendButton_clicked()
|
||||
{
|
||||
recipients.append(entry->getValue());
|
||||
}
|
||||
else
|
||||
else if (valid)
|
||||
{
|
||||
ui->scrollArea->ensureWidgetVisible(entry);
|
||||
valid = false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user