Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Set tab on opening of the Contact Editor to be the first tab.
[xestiaab/.git] / source / contacteditor / frmContactEditor.cpp
index 8881a2a..3d2cc28 100644 (file)
@@ -107,6 +107,8 @@ frmContactEditorADT( parent )
     //wxIcon contacticon;
     //contacticon.CopyFromBitmap(contacticonbmp);
     
+    nbkContact->SetSelection(0);
+    
 }
 
 void frmContactEditor::AddGeneralNickname( wxCommandEvent& event )
@@ -3124,8 +3126,6 @@ void frmContactEditor::LoadPicture( wxListEvent& event )
     wxImage photo;
     //wxMemoryInputStream istream(base64dec, (size_t)base64dec.size());
     
-    wxPuts(wxT("PicType:") + pictypeiter->second);
-    
     if (pictypeiter->second == wxT("image/jpeg")){
         
         if (!photo.LoadFile(istream, wxBITMAP_TYPE_JPEG)){
@@ -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);
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