Commit 2e7b93c5 authored by Christian Schulte zu Berge's avatar Christian Schulte zu Berge
Browse files

Fixed race condition in Qt queued signals of Adjusterwidget.

parent 1fa15a15
......@@ -32,9 +32,9 @@ namespace campvis {
{
setSliderProperties(_spinBox->singleStep(), _spinBox->minimum(), _spinBox->maximum());
connect(this, SIGNAL(s_minChanged(double)), this, SLOT(onMinChanged(double)), Qt::QueuedConnection);
connect(this, SIGNAL(s_maxChanged(double)), this, SLOT(onMaxChanged(double)), Qt::QueuedConnection);
connect(this, SIGNAL(s_singleStepChanged(double)), this, SLOT(onSingleStepChanged(double)), Qt::QueuedConnection);
connect(this, SIGNAL(s_minChanged(double)), this, SLOT(onMinChanged(double)));
connect(this, SIGNAL(s_maxChanged(double)), this, SLOT(onMaxChanged(double)));
connect(this, SIGNAL(s_singleStepChanged(double)), this, SLOT(onSingleStepChanged(double)));
connect(_spinBox, SIGNAL(valueChanged(double)), this, SLOT(onSpinBoxValueChanged(double)));
connect(_slider, SIGNAL(valueChanged(int)), this, SLOT(onSliderValueChanged(int)));
......
......@@ -32,9 +32,9 @@ namespace campvis {
{
setSliderProperties(_spinBox->singleStep(), _spinBox->minimum(), _spinBox->maximum());
connect(this, SIGNAL(s_minChanged(int)), this, SLOT(onMinChanged(int)), Qt::QueuedConnection);
connect(this, SIGNAL(s_maxChanged(int)), this, SLOT(onMaxChanged(int)), Qt::QueuedConnection);
connect(this, SIGNAL(s_singleStepChanged(int)), this, SLOT(onSingleStepChanged(int)), Qt::QueuedConnection);
connect(this, SIGNAL(s_minChanged(int)), this, SLOT(onMinChanged(int)));
connect(this, SIGNAL(s_maxChanged(int)), this, SLOT(onMaxChanged(int)));
connect(this, SIGNAL(s_singleStepChanged(int)), this, SLOT(onSingleStepChanged(int)));
connect(_spinBox, SIGNAL(valueChanged(int)), this, SLOT(onSpinBoxValueChanged(int)));
connect(_slider, SIGNAL(valueChanged(int)), this, SLOT(onSliderValueChanged(int)));
......
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