From 90149641dfe39d7fdc4dc78c589c0bc9a78fb46a Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 19 Jun 2021 23:17:24 +0200 Subject: [PATCH] Reset cost selection when no samples. --- server/TracySourceView.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index 477e0d98..ca7f59dc 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -1352,6 +1352,10 @@ void SourceView::RenderSymbolView( Worker& worker, View& view ) } } } + else + { + m_cost = 0; + } ImGui::PopStyleVar(); ImGui::Separator();