Improve OID resolver input behavior

Avoid setting the cursor to the end of string
at each key pressure when updating it in the OID resolver.
This commit is contained in:
Patrick Monnerat 2017-11-14 20:56:30 +01:00 committed by Christian Hohnstaedt
parent f4f1c72173
commit e457652fff

View File

@ -23,7 +23,8 @@ void OidResolver::searchOid(QString s)
bool ok;
int n;
input->setText(s);
if (input->text() != s) // Avoid moving the cursor at end if unchanged.
input->setText(s);
s = s.trimmed();
n = s.toUInt(&ok);
if (!ok)