dont set value when setting default

This commit is contained in:
itsmattkc
2019-03-17 09:17:57 +11:00
parent 789b751935
commit 13485a2587
3 changed files with 6 additions and 14 deletions
-11
View File
@@ -9,7 +9,6 @@ DoubleField::DoubleField(EffectRow* parent, const QString& id) :
default_(0),
display_type_(LabelSlider::Normal),
frame_rate_(30),
value_set_(false),
kdc_(nullptr)
{
connect(this, SIGNAL(Changed()), this, SLOT(ValueHasBeenSet()), Qt::DirectConnection);
@@ -35,11 +34,6 @@ void DoubleField::SetMaximum(double maximum)
void DoubleField::SetDefault(double d)
{
default_ = d;
if (!value_set_) {
SetValueAt(0, d);
value_set_ = false;
}
}
void DoubleField::SetDisplayType(LabelSlider::DisplayType type)
@@ -106,11 +100,6 @@ void DoubleField::UpdateWidgetValue(QWidget *widget, double timecode)
}
}
void DoubleField::ValueHasBeenSet()
{
value_set_ = true;
}
void DoubleField::UpdateFromWidget(double d)
{
LabelSlider* ls = static_cast<LabelSlider*>(sender());