]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/wxCDMAppliHelpDialog.cpp
Feature #1711
[crea.git] / lib / creaDevManagerLib / wxCDMAppliHelpDialog.cpp
index 446c65159651c615c91b01b6555b496043acaee1..ec93c10bbaa8dffb0f46eec7de0dbbe845b3a69a 100644 (file)
@@ -133,8 +133,7 @@ void wxCDMAppliHelpDialog::OnEditCMake(wxCommandEvent& event)
 
   if(this->appli->GetCMakeLists() != NULL)
     {
-      int CMId = this->appli->GetCMakeLists()->GetId();
-      newEvent->SetInt(CMId);
+      newEvent->SetClientData(this->appli->GetCMakeLists());
       newEvent->SetId(0);
       wxPostEvent(this->GetParent(), *newEvent);
     }
@@ -147,8 +146,7 @@ void wxCDMAppliHelpDialog::OnCMakeListsEnter(wxMouseEvent& event)
 
   if(this->appli->GetCMakeLists() != NULL)
     {
-      int CMId = this->appli->GetCMakeLists()->GetId();
-      newEvent->SetInt(CMId);
+      newEvent->SetClientData(this->appli->GetCMakeLists());
       newEvent->SetId(0);
       wxPostEvent(this->GetParent(), *newEvent);
     }
@@ -161,8 +159,7 @@ void wxCDMAppliHelpDialog::OnCMakeListsExit(wxMouseEvent& event)
 
   if(this->appli->GetCMakeLists() != NULL)
     {
-      int CMId = this->appli->GetCMakeLists()->GetId();
-      newEvent->SetInt(CMId);
+      newEvent->SetClientData(this->appli->GetCMakeLists());
       newEvent->SetId(0);
       wxPostEvent(this->GetParent(), *newEvent);
     }