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:
Christian Beer 2017-02-14 09:12:15 +01:00
parent 479cbb6154
commit b8c675410b
1 changed files with 3 additions and 2 deletions

View File

@ -236,8 +236,9 @@ void CDlgSelectComputer::OnComputerNameUpdated( wxCommandEvent& WXUNUSED(event)
wxString name = m_ComputerNameCtrl->GetValue();
if (pDoc->IsComputerNameLocal(name)) {
pDoc->m_pNetworkConnection->GetLocalPassword(strPassword);
if (pDoc->m_pNetworkConnection->GetLocalPassword(strPassword) == 0) {
m_ComputerPasswordCtrl->SetValue(strPassword);
}
}
}