mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-16 05:11:49 -05:00
Massive UI revamping (v7): correct ValueDialZ incorrectly zeroing on set value range
This commit is contained in:
parent
018b97e17d
commit
8f48e987fa
@ -153,11 +153,10 @@ void ValueDialZ::setValueRange(bool positiveOnly, uint numDigits, qint64 min, qi
|
||||
{
|
||||
setValue(m_valueMax);
|
||||
}
|
||||
else if (m_value == 0)
|
||||
else if ((m_value == 0) && (m_valueNew == 0))
|
||||
{
|
||||
m_text = formatText(0);
|
||||
m_textNew = m_text;
|
||||
m_valueNew = m_value;
|
||||
update();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user