FIX: the name is too long
jira: [STUDIO-10376] Change-Id: I93bcf0936122874dd5b4a2d57df690e78d09d517
This commit is contained in:
parent
ab018130d7
commit
1865dcd1b9
|
@ -946,8 +946,15 @@ void EditDevNameDialog::on_edit_name(wxCommandEvent &e)
|
|||
m_valid_type = NoValid;
|
||||
}
|
||||
|
||||
if (m_valid_type == Valid && new_dev_name.length() > 32)
|
||||
{
|
||||
info_line = _L("The name is not allowed to exceeds 32 characters.");
|
||||
m_valid_type = NoValid;
|
||||
}
|
||||
|
||||
if (m_valid_type == NoValid) {
|
||||
m_static_valid->SetLabel(info_line);
|
||||
m_static_valid->Wrap(m_static_valid->GetSize().GetWidth());
|
||||
Layout();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue