1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 01:55:48 -05:00

Fix ValueDialZ to allow keyboard entry of first digit when m_positiveOnly

This commit is contained in:
srcejon 2023-11-02 15:05:44 +00:00
parent 38e6534307
commit 1affacbb25

View File

@ -637,7 +637,7 @@ void ValueDialZ::keyPressEvent(QKeyEvent* value)
setValue(-m_value);
update();
}
else if ((c >= QChar('0')) && (c <= QChar('9')) && (m_cursor > 0)) // digits
else if ((c >= QChar('0')) && (c <= QChar('9')) && (m_cursor >= (m_positiveOnly ? 0 : 1))) // digits
{
if(m_animationState != 0) {
m_value = m_valueNew;