X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=pv%2Fviews%2Ftrace%2Fviewport.cpp;h=bf15e41c4387688f926645b51f79378df68e7006;hb=4aaa5b800184118b9db5f071c1e83ecc90e8a338;hp=a2d0b99ae34769ff8cf37b86525dcbc532b2a1d3;hpb=e6c8d58bde2c32f0ee8b73c5577505736caf8e23;p=pulseview.git diff --git a/pv/views/trace/viewport.cpp b/pv/views/trace/viewport.cpp index a2d0b99a..bf15e41c 100644 --- a/pv/views/trace/viewport.cpp +++ b/pv/views/trace/viewport.cpp @@ -244,10 +244,8 @@ void Viewport::wheelEvent(QWheelEvent *event) void Viewport::on_setting_changed(const QString &key, const QVariant &value) { - if (key == GlobalSettings::Key_View_AllowVerticalDragging) { - GlobalSettings settings; - allow_vertical_dragging_ = settings.value(GlobalSettings::Key_View_AllowVerticalDragging).toBool(); - } + if (key == GlobalSettings::Key_View_AllowVerticalDragging) + allow_vertical_dragging_ = value.toBool(); } } // namespace trace