When loading the settings of the Dual Marker for a session, the View(table) must be updated only if the active marker is actually set. Signed-off-by: Yordan Karadzhov <ykaradzhov@xxxxxxxxxx> --- kernel-shark-qt/src/KsSession.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel-shark-qt/src/KsSession.cpp b/kernel-shark-qt/src/KsSession.cpp index 96e09f2..6cd1403 100644 --- a/kernel-shark-qt/src/KsSession.cpp +++ b/kernel-shark-qt/src/KsSession.cpp @@ -431,7 +431,6 @@ void KsSession::loadDualMarker(KsDualMarkerSM *dm, KsTraceGraph *graphs) dm->reset(); dm->setState(DualMarkerState::A); - if (_getMarker("markA", &pos)) { graphs->markEntry(pos); } else { @@ -446,9 +445,10 @@ void KsSession::loadDualMarker(KsDualMarkerSM *dm, KsTraceGraph *graphs) } dm->setState(_getMarkerState()); - pos = dm->activeMarker()._pos; - - emit graphs->glPtr()->updateView(pos, true); + if (dm->activeMarker()._isSet) { + pos = dm->activeMarker()._pos; + emit graphs->glPtr()->updateView(pos, true); + } } json_object *KsSession::_getMarkerJson() -- 2.17.1