From: Joel Holdsworth Date: Wed, 8 Oct 2014 20:27:02 +0000 (+0100) Subject: Header, Viewport: Don't manually invoke on_signals_changed on construction X-Git-Tag: pulseview-0.3.0~466 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=376219314d9f1a792aa6a7ecf44314ba3422880d;p=pulseview.git Header, Viewport: Don't manually invoke on_signals_changed on construction --- diff --git a/pv/view/header.cpp b/pv/view/header.cpp index 22bc528c..50eefc43 100644 --- a/pv/view/header.cpp +++ b/pv/view/header.cpp @@ -60,10 +60,6 @@ Header::Header(View &parent) : connect(&_view, SIGNAL(signals_moved()), this, SLOT(on_signals_moved())); - - // Trigger the initial event manually. The default device has signals - // which were created before this object came into being - on_signals_changed(); } QSize Header::sizeHint() const diff --git a/pv/view/viewport.cpp b/pv/view/viewport.cpp index c0e9a69e..afff74ee 100644 --- a/pv/view/viewport.cpp +++ b/pv/view/viewport.cpp @@ -57,10 +57,6 @@ Viewport::Viewport(View &parent) : connect(&_view, SIGNAL(signals_moved()), this, SLOT(on_signals_moved())); - - // Trigger the initial event manually. The default device has signals - // which were created before this object came into being - on_signals_changed(); } int Viewport::get_total_height() const