Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
When adding & editing an address label, add quote marks at start & end of a label.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 10 Jan 2016 20:01:44 +0000 (20:01 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 10 Jan 2016 20:01:44 +0000 (20:01 +0000)
source/contacteditor/frmContactEditorAddress.cpp

index abd1d1f..f746895 100644 (file)
@@ -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).
                
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy