Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Check if application is running normally before sending events.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Fri, 1 Jan 2016 18:00:51 +0000 (18:00 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Fri, 1 Jan 2016 18:00:51 +0000 (18:00 +0000)
source/contacteditor/frmContactEditor-Events.cpp
source/contacteditor/frmContactEditor.cpp

index 239db34..b8f47df 100644 (file)
@@ -98,12 +98,16 @@ void frmContactEditor::UpdateName( wxCommandEvent &event ){
     
     WindowData *WData = new WindowData;
     
-    WData->DataType = 1;
-    WData->WindowPointer = this;
-    WData->WindowID = ContactEditorUID;
+    if (StartupEditMode == FALSE){
     
-    wxCommandEvent editevent(WINDOW_EDIT);
-    editevent.SetClientData(WData);
-    wxPostEvent(GetParent(), editevent);
+       WData->DataType = 1;
+       WData->WindowPointer = this;
+       WData->WindowID = ContactEditorUID;
+    
+       wxCommandEvent editevent(WINDOW_EDIT);
+       editevent.SetClientData(WData);
+       wxPostEvent(GetParent(), editevent);
+    
+    }
     
 }
\ No newline at end of file
index 2dbb7a2..ad79abc 100644 (file)
@@ -120,13 +120,17 @@ void frmContactEditor::CloseWindow( wxCloseEvent& event )
     
     WindowData *WData = new WindowData;
     
-    WData->DataType = 1;
-    WData->WindowPointer = this;
-    WData->WindowID = ContactEditorUID;
+    if (StartupEditMode == FALSE){
     
-    wxCommandEvent delevent(WINDOW_CLOSE);
-    delevent.SetClientData(WData);
-    wxPostEvent(GetParent(), delevent);
+       WData->DataType = 1;
+       WData->WindowPointer = this;
+       WData->WindowID = ContactEditorUID;
+    
+       wxCommandEvent delevent(WINDOW_CLOSE);
+       delevent.SetClientData(WData);
+       wxPostEvent(GetParent(), delevent);
+    
+    }
     
     Destroy();
     
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