X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fcontacteditor%2FfrmContactEditorAddress.cpp;h=f74689536ddaa7d4507f35eafe9721fc089cf79b;hb=0e8795282bd50fd769ef89e8d6685c0d922ee403;hp=f613e0ae2c1a2a42cf4ef674bd3538ce352ccd33;hpb=45729fca56479bd9158486e0cda0c4a94b4dd1dc;p=xestiaab%2F.git diff --git a/source/contacteditor/frmContactEditorAddress.cpp b/source/contacteditor/frmContactEditorAddress.cpp index f613e0a..f746895 100644 --- a/source/contacteditor/frmContactEditorAddress.cpp +++ b/source/contacteditor/frmContactEditorAddress.cpp @@ -1,3 +1,21 @@ +// frmContactEditorAddress.cpp - frmContactEditorAddress form. +// +// (c) 2012-2015 Xestia Software Development. +// +// This file is part of Xestia Address Book. +// +// Xestia Address Book is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by the +// Free Software Foundation, version 3 of the license. +// +// Xestia Address Book is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License along +// with Xestia Address Book. If not, see + #include "frmContactEditorAddress.h" #include #include @@ -54,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). @@ -175,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).