Browse Source

pstats: Fix GTK strip chart total label and window title not updating

...when navigating around in a session that is not being updated automatically (eg. loaded from file)
rdb 2 years ago
parent
commit
da57279d9a
1 changed files with 5 additions and 1 deletions
  1. 5 1
      pandatool/src/gtk-stats/gtkStatsStripChart.cxx

+ 5 - 1
pandatool/src/gtk-stats/gtkStatsStripChart.cxx

@@ -84,7 +84,8 @@ GtkStatsStripChart(GtkStatsMonitor *monitor, int thread_index,
 
   clear_region();
 
-  update();
+  // Update window title and total label.
+  new_data(0, 0);
 }
 
 /**
@@ -204,6 +205,9 @@ on_click_label(int collector_index) {
     // Clicking on any other label means to focus on that.
     set_collector_index(collector_index);
   }
+
+  // Update window title and total label.
+  new_data(0, 0);
 }
 
 /**