fixed stack corruption after refactor?
This commit is contained in:
parent
780b546385
commit
6227a366c3
5 changed files with 18 additions and 14 deletions
|
|
@ -187,6 +187,8 @@ EndpointWidget::EndpointWidget(uint64_t idx, EndpointHandler* eph, QWidget *pare
|
|||
}
|
||||
|
||||
EndpointWidget::~EndpointWidget() {
|
||||
timer->stop();
|
||||
delete timer;
|
||||
this->eph->setFrontVisibilityInfo(EndpointState::ENDPOINT_ALL, INT_MAX);
|
||||
}
|
||||
|
||||
|
|
@ -211,7 +213,7 @@ void MainWindow::removeEndpointWidget(EndpointWidgetEvent<uint64_t>* ev){
|
|||
//delete ews.at(index);
|
||||
while ((i + 1) < ews.size()) {
|
||||
ews.at(i) = ews.at(i + 1);
|
||||
ews.at(i)->updateEndpointHandlerFrontIndex(i);
|
||||
ews.at(i)->updateFrontIndex(i);
|
||||
i++;
|
||||
}
|
||||
ews.pop_back();
|
||||
|
|
@ -270,7 +272,8 @@ EndpointHandler* EndpointWidget::getEndpointHandler(){
|
|||
return this->eph;
|
||||
}
|
||||
|
||||
void EndpointWidget::updateEndpointHandlerFrontIndex(uint64_t index){
|
||||
void EndpointWidget::updateFrontIndex(uint64_t index){
|
||||
this->idx = index;
|
||||
this->eph->setFrontVisibilityInfo(EndpointState::ENDPOINT_ACTIVE, index);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue