Message ID | 20190715132042.5154-2-y.karadz@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | Fixes needed befor KS 1.0 | expand |
diff --git a/kernel-shark/src/KsTraceViewer.cpp b/kernel-shark/src/KsTraceViewer.cpp index 05977c3..89e5dba 100644 --- a/kernel-shark/src/KsTraceViewer.cpp +++ b/kernel-shark/src/KsTraceViewer.cpp @@ -285,10 +285,11 @@ void KsTraceViewer::_searchEditText(const QString &text) void KsTraceViewer::_graphFollowsChanged(int state) { - _graphFollows = (bool) state; + int row = selectedRow(); - if (_graphFollows && _searchDone()) - emit select(*_it); // Send a signal to the Graph widget. + _graphFollows = (bool) state; + if (_graphFollows && row != KS_NO_ROW_SELECTED) + emit select(row); // Send a signal to the Graph widget. } void KsTraceViewer::_search()