diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp index 499dcd84..f7f49104 100644 --- a/profiler/src/main.cpp +++ b/profiler/src/main.cpp @@ -276,6 +276,7 @@ int main( int argc, char** argv ) ImGui::SameLine(); if( ImGui::BeginCombo( "##frameCombo", nullptr, ImGuiComboFlags_NoPreview ) ) { + int idxRemove = -1; const auto sz = std::min( 5, connHistVec.size() ); for( size_t i=0; i= 0 ) + { + connHistMap.erase( connHistVec[idxRemove] ); + connHistVec = RebuildConnectionHistory( connHistMap ); } ImGui::EndCombo(); }