Skip to content

Commit 42bd8f7

Browse files
committed
MyDialogNewConnection: show port hint again when text emptied
1 parent f574bb6 commit 42bd8f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gui/MyDialogNewConnection.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ MyDialogNewConnection::MyDialogNewConnection(wxWindow *parent, int id,
99
const wxPoint &pos,
1010
const wxSize &size, long style)
1111
: DialogNewConnection(parent, id, title, pos, size, style) {
12-
text_ctrl_vnc_port->SetValidator(wxIntegerValidator<int>(NULL, 0, 65535));
12+
text_ctrl_vnc_port->SetValidator(wxIntegerValidator<int>(NULL, 0, 65535, wxNUM_VAL_ZERO_AS_BLANK));
1313
text_ctrl_repeater_id->SetValidator(wxIntegerValidator<int>());
14-
text_ctrl_ssh_port->SetValidator(wxIntegerValidator<int>(NULL, 0, 65535));
14+
text_ctrl_ssh_port->SetValidator(wxIntegerValidator<int>(NULL, 0, 65535, wxNUM_VAL_ZERO_AS_BLANK));
1515

1616
// Bind radio button events
1717
radio_btn_ssh_password->Bind(wxEVT_RADIOBUTTON,

0 commit comments

Comments
 (0)