mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-05-28 13:12:24 -04:00
Fix ValueDialZ to allow keyboard entry of first digit when m_positiveOnly
This commit is contained in:
parent
38e6534307
commit
1affacbb25
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user