1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-16 12:49:15 -04:00

Massive UI revamping (v7): correct ValueDialZ incorrectly zeroing on set value range

This commit is contained in:
f4exb
2022-04-18 05:25:31 +02:00
parent 018b97e17d
commit 8f48e987fa
+1 -2
View File
@@ -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();
}
}