anr: remove window on closewindow (#13007)

m_data was never cleaned and continously built up the m_data, remove
the entry on closeWindow.
This commit is contained in:
Tom Englund 2026-01-17 10:23:09 +01:00 committed by Vaxry
parent 64818bd14c
commit 65a7093659
Signed by: vaxry
GPG key ID: 665806380871D640

View file

@ -53,8 +53,9 @@ CANRManager::CANRManager() {
d->killDialog();
d->missedResponses = 0;
d->dialogSaidWait = false;
return;
}
std::erase_if(m_data, [&window](auto& w) { return w == window; });
});
m_timer->updateTimeout(TIMER_TIMEOUT);