tqt installwizard: fix empty filename crash - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 1059191ebcb6be917d38ab99187f6658007d9c4e DIR parent d2f132738a2a13d896b11ca984d94930cc1c9aad HTML Author: SomberNight <somber.night@protonmail.com> Date: Tue, 7 Jan 2020 16:53:37 +0100 qt installwizard: fix empty filename crash Traceback (most recent call last): File "...\electrum\electrum\gui\qt\installwizard.py", line 256, in on_filename widget_create_new.setVisible(temp_storage and temp_storage.file_exists()) TypeError: setVisible(self, bool): argument 1 has unexpected type 'NoneType' Diffstat: M electrum/gui/qt/installwizard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/electrum/gui/qt/installwizard.py b/electrum/gui/qt/installwizard.py t@@ -253,7 +253,7 @@ class InstallWizard(QDialog, MessageBoxMixin, BaseWizard): if msg is None: msg = _('Cannot read file') self.msg_label.setText(msg) - widget_create_new.setVisible(temp_storage and temp_storage.file_exists()) + widget_create_new.setVisible(bool(temp_storage and temp_storage.file_exists())) if user_needs_to_enter_password: self.pw_label.show() self.pw_e.show()