mirror of
https://github.com/chris2511/xca.git
synced 2026-09-14 11:06:19 +05:00
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:
parent
f4f1c72173
commit
e457652fff
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user