Forgot to stash the debugger crash fix.

This commit is contained in:
Martín Lucas Golini
2025-09-09 00:01:50 -03:00
parent 8f2157e700
commit 3a7e4add3a

View File

@@ -497,6 +497,8 @@ void DebuggerClientListener::scopes( const int /*frameId*/, std::vector<Scope>&&
uiVars->removeActionsByTag( SCOPES_UI_HASH );
uiVars->runOnMainThread(
[this, uiVars] {
// Reset selection given that the VariablesModel can end up doing an use-after-free
uiVars->getSelection().clear();
auto model = uiVars->getModel();
size_t total = model->rowCount();
for ( size_t i = 0; i < total; i++ ) {