diff mbox series

[v2,3/8] kernel-shark-qt: Update the visualization model when updating Graphs

Message ID 20181109195004.25455-4-ykaradzhov@vmware.com (mailing list archive)
State Accepted
Commit aec58bb2afb69154c45196f1cf9d53b48b34a0a6
Headers show
Series New/improved KernelShark plugins | expand

Commit Message

Yordan Karadzhov Nov. 9, 2018, 7:50 p.m. UTC
Updating the model when the Graph widget is doing self-update, guarantees
that all previously plotted graphs are wiped out before plotting something
new.

Signed-off-by: Yordan Karadzhov <ykaradzhov@vmware.com>
---
 kernel-shark-qt/src/KsTraceGraph.cpp | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/kernel-shark-qt/src/KsTraceGraph.cpp b/kernel-shark-qt/src/KsTraceGraph.cpp
index 21a09d0..29a5950 100644
--- a/kernel-shark-qt/src/KsTraceGraph.cpp
+++ b/kernel-shark-qt/src/KsTraceGraph.cpp
@@ -215,6 +215,7 @@  void KsTraceGraph::_selfUpdate()
 	_updateGraphLegends();
 	_updateTimeLegends();
 	_markerReDraw();
+	_glWindow.model()->update();
 	updateGeom();
 }