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 @@
#include <QLabel>
#include <QVBoxLayout>
#include <QtDebug>
EffectInstanceWidget::EffectInstanceWidget( QWidget *parent ) :
QWidget( parent ),
m_ui( new Ui::EffectSettingWidget )
{
m_ui->setupUi( this );
clear();
connect( m_ui->applyButton, SIGNAL( clicked() ),
this, SLOT( save() ) );
}
void
......@@ -63,8 +67,6 @@ EffectInstanceWidget::setEffectInstance( EffectInstance *instance )
m_settings.push_back( widget );
++it;
}
connect( m_ui->applyButton, SIGNAL( clicked() ),
this, SLOT( save() ) );
}
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