ueventdata->ItemLabel = _("Stopped");
wxPostEvent(static_cast<frmActivityMgr*>(ActMgrPtr), uevent);
- iter->second = 5;
+ iter->second = 6;
} else if (iter->second == 4){
}
+ // Delete the connection object if finished.
+
+ if (iter->second > 4){
+
+ std::map<int,ConnectionObject*>::iterator ConnObjectIter = ActListConnObjectsPtr->find(iter->first);
+
+ delete ConnObjectIter->second;
+ ConnObjectIter->second = nullptr;
+
+ }
+
// Insert a finish date.
wxDateTime adt;
std::map<int,wxString> *ActListDetail, bool *TasksActive,
wxListCtrl *lstActivity, wxStaticText *lblDetails, wxGauge *GauProgress,
void *ActMgr, wxActTimer *ActTimer, wxActProcessTimer *ActProcessTimer,
- std::map<int,wxDateTime> *ActListFinDT, std::map<int, CardDAV*> *ActListConn){
+ std::map<int,wxDateTime> *ActListFinDT, std::map<int,ConnectionObject*> *ActListConnObjects){
// Setup the pointers for wxActListProcTimer.
ActTimerPtr = ActTimer;
ActProcessTimerPtr = ActProcessTimer;
ActListFinDTPtr = ActListFinDT;
- ActListConnPtr = ActListConn;
+ ActListConnObjectsPtr = ActListConnObjects;
}