Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Diff of /libgui/FrequencyResponseWidget.cpp [13fb08] .. [354ca9] Maximize Restore

  Switch to side-by-side view

--- a/libgui/FrequencyResponseWidget.cpp
+++ b/libgui/FrequencyResponseWidget.cpp
@@ -55,18 +55,7 @@
 //***************************************************************************
 void FrequencyResponseWidget::setFilter(TransmissionFunction *func)
 {
-    if (m_function) { // disconnect the old function
-	QObject::disconnect(m_function, SIGNAL(changed()),
-	                    this, SLOT(repaint()));
-    }
-
     m_function = func;
-
-    if (m_function) { // connect the new function
-	QObject::connect(m_function, SIGNAL(changed()),
-	                 this, SLOT(repaint()));
-    }
-
     repaint();
 }