Skip to content

Commit

Permalink
Derivation scanner: use deleteLater()
Browse files Browse the repository at this point in the history
This is just to kill the widget immediately when we are done with it.
  • Loading branch information
cculianu committed Mar 21, 2021
1 parent 4300577 commit b0d64f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions electroncash_gui/qt/installwizard.py
Expand Up @@ -503,9 +503,11 @@ def f(text):
def derivation_path_dialog(self, run_next, title, message, default, test, warning='', seed='', scannable=False):
def on_derivation_scan(derivation_line, seed):
derivation_scan_dialog = DerivationDialog(self, seed, DerivationPathScanner.DERIVATION_PATHS)
destroyed_print_error(derivation_scan_dialog)
selected_path = derivation_scan_dialog.get_selected_path()
if selected_path:
derivation_line.setText(selected_path)
derivation_scan_dialog.deleteLater()

vbox = QVBoxLayout()
vbox.addWidget(WWLabel(message))
Expand Down

0 comments on commit b0d64f1

Please sign in to comment.