]> sigrok.org Git - pulseview.git/blobdiff - pv/views/trace/view.cpp
Update cursor action's state whenever the cursor state changes
[pulseview.git] / pv / views / trace / view.cpp
index d559b0af5f6bcde346d3cef0b84f31fd80278505..f634b4ae532966be2c08ae793bdb88df0aa3bb88 100644 (file)
@@ -246,7 +246,7 @@ void View::reset_view_state()
        suppress_zoom_to_fit_after_acq_ = false;
 
        show_cursors_ = false;
-       cursors_.reset();
+       cursor_state_changed(show_cursors_);
        flags_.clear();
 
        // Update the zoom state
@@ -816,6 +816,7 @@ bool View::cursors_shown() const
 void View::show_cursors(bool show)
 {
        show_cursors_ = show;
+       cursor_state_changed(show);
        ruler_->update();
        viewport_->update();
 }