From b8c675410b5232ab51b7b19fbffe3f9c23fc382d Mon Sep 17 00:00:00 2001 From: Christian Beer Date: Tue, 14 Feb 2017 09:12:15 +0100 Subject: [PATCH] Manager: fix password lookup in combobox event If the password file is not readable don't set an empty string in the textbox. --- clientgui/DlgSelectComputer.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/clientgui/DlgSelectComputer.cpp b/clientgui/DlgSelectComputer.cpp index 40cbe7a17d..42a4049d40 100644 --- a/clientgui/DlgSelectComputer.cpp +++ b/clientgui/DlgSelectComputer.cpp @@ -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); + } } }