From: Soeren Apel Date: Tue, 17 Jul 2018 16:45:12 +0000 (+0200) Subject: View: Don't set scroll defaults more than once X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=2099158e1e3a95c03d8d393921d4171f9bd1379c;p=pulseview.git View: Don't set scroll defaults more than once --- diff --git a/pv/views/trace/view.cpp b/pv/views/trace/view.cpp index 96b17fda..0070c743 100644 --- a/pv/views/trace/view.cpp +++ b/pv/views/trace/view.cpp @@ -1053,8 +1053,10 @@ void View::update_scroll() vscrollbar->setRange(extents.first - areaSize.height(), extents.second); - if (scroll_needs_defaults_) + if (scroll_needs_defaults_) { set_scroll_default(); + scroll_needs_defaults_ = false; + } } void View::reset_scroll()