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
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();