Skip to content
Snippets Groups Projects
Commit fd799ec1 authored by Angel Santamaria-Navarro's avatar Angel Santamaria-Navarro
Browse files

do not delete problem pointer

parent 3f6ff34f
No related branches found
No related tags found
No related merge requests found
...@@ -395,9 +395,6 @@ void Problem::removeStateBlockPtr(StateBlockPtr _state_ptr) ...@@ -395,9 +395,6 @@ void Problem::removeStateBlockPtr(StateBlockPtr _state_ptr)
// Add remove notification // Add remove notification
_state_ptr->addNotification(StateBlock::Notification::REMOVE); _state_ptr->addNotification(StateBlock::Notification::REMOVE);
notifyStateBlock(_state_ptr, StateBlock::Notification::REMOVE); notifyStateBlock(_state_ptr, StateBlock::Notification::REMOVE);
// reset problem ptr
_state_ptr->setProblem(nullptr);
} }
void Problem::notifyStateBlock(StateBlockPtr _state_ptr, const StateBlock::Notification _type) void Problem::notifyStateBlock(StateBlockPtr _state_ptr, const StateBlock::Notification _type)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment