electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit d1e897bf8f0bb8dd3a9a394b8284dd4c9dd8622d
parent 10b35e3545001f1e98f92942e7f7ba49e915c27a
Author: ThomasV <thomasv@electrum.org>
Date:   Sun, 17 Sep 2017 21:51:18 +0200

Merge pull request #2886 from romanz/master

paytoedit: fix insertCompletion() string handling
Diffstat:
Mgui/qt/paytoedit.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gui/qt/paytoedit.py b/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)