mirror of https://github.com/BOINC/boinc.git
Manager: fix password lookup in combobox event
If the password file is not readable don't set an empty string in the textbox.
This commit is contained in:
parent
479cbb6154
commit
b8c675410b
|
@ -236,8 +236,9 @@ void CDlgSelectComputer::OnComputerNameUpdated( wxCommandEvent& WXUNUSED(event)
|
|||
|
||||
wxString name = m_ComputerNameCtrl->GetValue();
|
||||
if (pDoc->IsComputerNameLocal(name)) {
|
||||
pDoc->m_pNetworkConnection->GetLocalPassword(strPassword);
|
||||
m_ComputerPasswordCtrl->SetValue(strPassword);
|
||||
if (pDoc->m_pNetworkConnection->GetLocalPassword(strPassword) == 0) {
|
||||
m_ComputerPasswordCtrl->SetValue(strPassword);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue