From f0aadfe0666871f2a0ccec38ab34bd4b5c867b8c Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 17 Mar 2019 16:43:20 +0100 Subject: [PATCH] Don't push the same zone on zone info stack multiple times. --- server/TracyView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 4f5b0aa0..9e4957a1 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -9677,7 +9677,7 @@ void View::CenterAtTime( int64_t t ) void View::ShowZoneInfo( const ZoneEvent& ev ) { - if( m_zoneInfoWindow ) + if( m_zoneInfoWindow && m_zoneInfoWindow != &ev ) { m_zoneInfoStack.push_back( m_zoneInfoWindow ); } @@ -9692,7 +9692,7 @@ void View::ShowZoneInfo( const ZoneEvent& ev ) void View::ShowZoneInfo( const GpuEvent& ev, uint64_t thread ) { - if( m_gpuInfoWindow ) + if( m_gpuInfoWindow && m_gpuInfoWindow != &ev ) { m_gpuInfoStack.push_back( m_gpuInfoWindow ); }