From: Steve Brokenshire Date: Sun, 10 Jan 2016 20:01:44 +0000 (+0000) Subject: When adding & editing an address label, add quote marks at start & end of a label. X-Git-Tag: release-0.09~82 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=0e8795282bd50fd769ef89e8d6685c0d922ee403;p=xestiaab%2F.git When adding & editing an address label, add quote marks at start & end of a label. --- diff --git a/source/contacteditor/frmContactEditorAddress.cpp b/source/contacteditor/frmContactEditorAddress.cpp index abd1d1f..f746895 100644 --- a/source/contacteditor/frmContactEditorAddress.cpp +++ b/source/contacteditor/frmContactEditorAddress.cpp @@ -72,7 +72,10 @@ void frmContactEditorAddress::ProcessData( wxCommandEvent& event ) // Add the label to the list (maps). - AddressListLabelPtr->insert(std::make_pair(AddressListIndex, txtLabel->GetValue())); + wxString LabelData = txtLabel->GetValue(); + LabelData.Prepend("\""); + LabelData.Append("\""); + AddressListLabelPtr->insert(std::make_pair(AddressListIndex, LabelData)); // Add the language to the list (maps). @@ -193,7 +196,11 @@ void frmContactEditorAddress::ProcessData( wxCommandEvent& event ) // Add the label to the list (maps). AddressListLabelPtr->erase(AddressListIndex); - AddressListLabelPtr->insert(std::make_pair(AddressListIndex, txtLabel->GetValue())); + + wxString LabelData = txtLabel->GetValue(); + LabelData.Prepend("\""); + LabelData.Append("\""); + AddressListLabelPtr->insert(std::make_pair(AddressListIndex, LabelData)); // Add the language to the list (maps).