Browse Source
qt: (fix) make ScanQRTextEdit inherit Logger
the error handling in `qr_input()`, around line 81,
references `self.logger`, which would raise
patch-4
SomberNight
4 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
1 changed files with
3 additions and
1 deletions
-
electrum/gui/qt/qrtextedit.py
|
|
@ -4,6 +4,7 @@ from electrum.i18n import _ |
|
|
|
from electrum.plugin import run_hook |
|
|
|
from electrum.simple_config import SimpleConfig |
|
|
|
from electrum.util import UserFacingException |
|
|
|
from electrum.logging import Logger |
|
|
|
|
|
|
|
from .util import ButtonsTextEdit, MessageBoxMixin, ColorScheme, getOpenFileName |
|
|
|
|
|
|
@ -37,10 +38,11 @@ class ShowQRTextEdit(ButtonsTextEdit): |
|
|
|
m.exec_(e.globalPos()) |
|
|
|
|
|
|
|
|
|
|
|
class ScanQRTextEdit(ButtonsTextEdit, MessageBoxMixin): |
|
|
|
class ScanQRTextEdit(ButtonsTextEdit, MessageBoxMixin, Logger): |
|
|
|
|
|
|
|
def __init__(self, text="", allow_multi=False, *, config: SimpleConfig): |
|
|
|
ButtonsTextEdit.__init__(self, text) |
|
|
|
Logger.__init__(self) |
|
|
|
self.allow_multi = allow_multi |
|
|
|
self.config = config |
|
|
|
self.setReadOnly(False) |
|
|
|