From: Steve Brokenshire Date: Sun, 4 Oct 2015 14:56:53 +0000 (+0100) Subject: Send event to reload contact list and ensure that Display As name has right ordering. X-Git-Tag: release-0.05~47 X-Git-Url: http://Server1/repobrowser/?p=xestiaab%2F.git;a=commitdiff_plain;h=b04c61ea3de06d6a29d20ac4084ea7aa3ba5db12 Send event to reload contact list and ensure that Display As name has right ordering. --- 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);