tqt tx dialog: fix visual artifact when opening (widget parenting issue) - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 422f7ad110b5053a794f48ec7df97a034c801248 DIR parent 177766ac3794225b07dd902acf59c53d3971b2c0 HTML Author: SomberNight <somber.night@protonmail.com> Date: Wed, 6 Jan 2021 02:24:51 +0100 qt tx dialog: fix visual artifact when opening (widget parenting issue) Diffstat: M electrum/gui/qt/locktimeedit.py | 6 +++--- M electrum/gui/qt/transaction_dialog… | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) --- DIR diff --git a/electrum/gui/qt/locktimeedit.py b/electrum/gui/qt/locktimeedit.py t@@ -27,9 +27,9 @@ class LockTimeEdit(QWidget): hbox.setContentsMargins(0, 0, 0, 0) hbox.setSpacing(0) - self.locktime_raw_e = LockTimeRawEdit() - self.locktime_height_e = LockTimeHeightEdit() - self.locktime_date_e = LockTimeDateEdit() + self.locktime_raw_e = LockTimeRawEdit(self) + self.locktime_height_e = LockTimeHeightEdit(self) + self.locktime_date_e = LockTimeDateEdit(self) self.editors = [self.locktime_raw_e, self.locktime_height_e, self.locktime_date_e] self.combo = QComboBox() DIR diff --git a/electrum/gui/qt/transaction_dialog.py b/electrum/gui/qt/transaction_dialog.py t@@ -640,7 +640,7 @@ class BaseTxDialog(QDialog, MessageBoxMixin): locktime_setter_hbox.setSpacing(0) locktime_setter_label = TxDetailLabel() locktime_setter_label.setText("LockTime: ") - self.locktime_e = LockTimeEdit() + self.locktime_e = LockTimeEdit(self) locktime_setter_hbox.addWidget(locktime_setter_label) locktime_setter_hbox.addWidget(self.locktime_e) locktime_setter_hbox.addStretch(1)