Skip to content

Commit 79f9b49

Browse files
committed
qt: focus reason can't be None (fixes #8962)
1 parent e4eb9ce commit 79f9b49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

electrum/gui/qt/paytoedit.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def setText(self, text: str) -> None:
199199
self.line_edit.setText(text)
200200
self.text_edit.setText(text)
201201

202-
def setFocus(self, reason=None) -> None:
202+
def setFocus(self, reason=Qt.OtherFocusReason) -> None:
203203
if self.multiline:
204204
self.text_edit.setFocus(reason)
205205
else:

0 commit comments

Comments
 (0)