Skip to content

Commit a4765bd

Browse files
bpayfanquake
authored andcommitted
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.
1 parent 442a9c6 commit a4765bd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/qt/sendcoinsdialog.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,9 @@ void SendCoinsDialog::on_sendButton_clicked()
230230
{
231231
recipients.append(entry->getValue());
232232
}
233-
else
233+
else if (valid)
234234
{
235+
ui->scrollArea->ensureWidgetVisible(entry);
235236
valid = false;
236237
}
237238
}

0 commit comments

Comments
 (0)