Don't push the same zone on zone info stack multiple times.

This commit is contained in:
Bartosz Taudul 2019-03-17 16:43:20 +01:00
parent 06421cf5ca
commit f0aadfe066

View File

@ -9677,7 +9677,7 @@ void View::CenterAtTime( int64_t t )
void View::ShowZoneInfo( const ZoneEvent& ev ) void View::ShowZoneInfo( const ZoneEvent& ev )
{ {
if( m_zoneInfoWindow ) if( m_zoneInfoWindow && m_zoneInfoWindow != &ev )
{ {
m_zoneInfoStack.push_back( m_zoneInfoWindow ); 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 ) void View::ShowZoneInfo( const GpuEvent& ev, uint64_t thread )
{ {
if( m_gpuInfoWindow ) if( m_gpuInfoWindow && m_gpuInfoWindow != &ev )
{ {
m_gpuInfoStack.push_back( m_gpuInfoWindow ); m_gpuInfoStack.push_back( m_gpuInfoWindow );
} }