]> sigrok.org Git - pulseview.git/commitdiff
View: Don't set scroll defaults more than once
authorSoeren Apel <redacted>
Tue, 17 Jul 2018 16:45:12 +0000 (18:45 +0200)
committerUwe Hermann <redacted>
Sat, 21 Jul 2018 16:57:21 +0000 (18:57 +0200)
pv/views/trace/view.cpp

index 96b17fdaf25a9a791bf675e97c387b985d849b69..0070c743e8d13de97747b356aeb49d287cc847cc 100644 (file)
@@ -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()