X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fmainwindow.cpp;h=bc20898249afd70ee4f90972304289a2db7ab0ba;hp=6e408583a52d0cb1e7e2c45870c950cbedc4094f;hb=d552c5c7f25ac892b7dc218264d6fe2823db44ef;hpb=91f8fe8c30131fb438dbdb1b58d69ede7ba9247b diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index 6e40858..bc20898 100644 --- a/pv/mainwindow.cpp +++ b/pv/mainwindow.cpp @@ -191,10 +191,6 @@ shared_ptr MainWindow::add_view(const QString &title, if (type == view::TraceView) { connect(&session, SIGNAL(trigger_event(util::Timestamp)), v.get(), SLOT(trigger_event(util::Timestamp))); - connect(v.get(), SIGNAL(sticky_scrolling_changed(bool)), this, - SLOT(sticky_scrolling_changed(bool))); - connect(v.get(), SIGNAL(always_zoom_to_fit_changed(bool)), this, - SLOT(always_zoom_to_fit_changed(bool))); v->enable_sticky_scrolling(action_view_sticky_scrolling_->isChecked()); v->enable_coloured_bg(action_view_coloured_bg_->isChecked()); @@ -206,6 +202,9 @@ shared_ptr MainWindow::add_view(const QString &title, session.set_main_bar(main_bar); } main_bar->action_view_show_cursors()->setChecked(v->cursors_shown()); + + connect(v.get(), SIGNAL(always_zoom_to_fit_changed(bool)), + main_bar.get(), SLOT(on_always_zoom_to_fit_changed(bool))); } }