1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-04 23:14:47 -04:00

Value dial: Check for completed animation before using m_value

This commit is contained in:
Jon Beniston
2022-06-23 16:26:27 +01:00
parent fc4b448f1f
commit 33c19b6fe0
2 changed files with 8 additions and 8 deletions
+4 -4
View File
@@ -553,14 +553,14 @@ void ValueDial::keyPressEvent(QKeyEvent *value)
if (c >= QChar('0') && (c <= QChar('9')))
{
int d = c.toLatin1() - '0';
quint64 e = findExponent(m_cursor);
quint64 v = (m_value / e) % 10;
if (m_animationState != 0) {
m_value = m_valueNew;
}
int d = c.toLatin1() - '0';
quint64 e = findExponent(m_cursor);
quint64 v = (m_value / e) % 10;
v = m_value - v * e;
v += d * e;
setValue(v);