Commit b19a230f authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

EffectInstanceWidget: Don't reconnect the save slot each time a new effect is watched.

parent 8ace1378
...@@ -34,12 +34,16 @@ ...@@ -34,12 +34,16 @@
#include <QLabel> #include <QLabel>
#include <QVBoxLayout> #include <QVBoxLayout>
#include <QtDebug>
EffectInstanceWidget::EffectInstanceWidget( QWidget *parent ) : EffectInstanceWidget::EffectInstanceWidget( QWidget *parent ) :
QWidget( parent ), QWidget( parent ),
m_ui( new Ui::EffectSettingWidget ) m_ui( new Ui::EffectSettingWidget )
{ {
m_ui->setupUi( this ); m_ui->setupUi( this );
clear(); clear();
connect( m_ui->applyButton, SIGNAL( clicked() ),
this, SLOT( save() ) );
} }
void void
...@@ -63,8 +67,6 @@ EffectInstanceWidget::setEffectInstance( EffectInstance *instance ) ...@@ -63,8 +67,6 @@ EffectInstanceWidget::setEffectInstance( EffectInstance *instance )
m_settings.push_back( widget ); m_settings.push_back( widget );
++it; ++it;
} }
connect( m_ui->applyButton, SIGNAL( clicked() ),
this, SLOT( save() ) );
} }
void void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment