From b04c61ea3de06d6a29d20ac4084ea7aa3ba5db12 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sun, 4 Oct 2015 15:56:53 +0100 Subject: [PATCH] Send event to reload contact list and ensure that Display As name has right ordering. --- source/contacteditor/frmContactEditor.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/contacteditor/frmContactEditor.cpp b/source/contacteditor/frmContactEditor.cpp index 8881a2a..02e605b 100644 --- a/source/contacteditor/frmContactEditor.cpp +++ b/source/contacteditor/frmContactEditor.cpp @@ -6072,6 +6072,10 @@ void frmContactEditor::SaveContact( wxCommandEvent& event ) FMTimer.SetFilename(FilenameFinal); FMTimer.UpdateTimestamp(); FMTimer.Start(10000, FALSE); + + wxCommandEvent reloadevent(RELOADCONTACTLIST); + reloadevent.SetString(wxSContactAccount); + wxPostEvent(this->GetParent(), reloadevent); } else { @@ -7743,7 +7747,7 @@ void frmContactEditor::UpdateDisplayAs( wxCommandEvent &event ){ } if (!txtTitle->GetValue().IsEmpty()){ - cmbDisplayAs->Append(txtTitle->GetValue() + wxT(" ") + txtSurname->GetValue() + wxT(" ") + txtForename->GetValue()); + cmbDisplayAs->Append(txtTitle->GetValue() + wxT(" ") + txtForename->GetValue() + wxT(" ") + txtSurname->GetValue()); } cmbDisplayAs->SetValue(SetValue); -- 2.39.5