Browse Source

Merge pull request #2886 from romanz/master

paytoedit: fix insertCompletion() string handling
seed_v14
ThomasV 7 years ago
committed by GitHub
parent
commit
d1e897bf8f
  1. 4
      gui/qt/paytoedit.py

4
gui/qt/paytoedit.py

@ -209,10 +209,10 @@ class PayToEdit(ScanQRTextEdit):
if self.c.widget() != self:
return
tc = self.textCursor()
extra = completion.length() - self.c.completionPrefix().length()
extra = len(completion) - len(self.c.completionPrefix())
tc.movePosition(QTextCursor.Left)
tc.movePosition(QTextCursor.EndOfWord)
tc.insertText(completion.right(extra))
tc.insertText(completion[-extra:])
self.setTextCursor(tc)

Loading…
Cancel
Save