electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit c6bdd3c1b0e41968b0f123a80631df09f0870787
parent 777a3aa8bfe751c13873a272cea2c95215c9234d
Author: ThomasV <thomasv@electrum.org>
Date:   Fri,  7 Jul 2017 23:26:42 +0200

fix: follow-up 2a53e85e8d4ecb4bcebecfde1b34826bc4e88578

Diffstat:
Mgui/qt/installwizard.py | 11+++++------
1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/gui/qt/installwizard.py b/gui/qt/installwizard.py @@ -96,14 +96,11 @@ def wizard_dialog(func): class InstallWizard(QDialog, MessageBoxMixin, BaseWizard): def __init__(self, config, app, plugins, storage): - BaseWizard.__init__(self, config, storage) QDialog.__init__(self, None) - self.setWindowTitle('Electrum - ' + _('Install Wizard')) self.app = app self.config = config - # Set for base base class self.plugins = plugins self.language_for_seed = config.get('language') @@ -169,15 +166,17 @@ class InstallWizard(QDialog, MessageBoxMixin, BaseWizard): vbox.addLayout(hbox2) self.set_layout(vbox, title=_('Electrum wallet')) + wallet_folder = os.path.dirname(self.storage.path) + def on_choose(): - wallet_folder = os.path.dirname(self.storage.path) path = unicode(QFileDialog.getOpenFileName(self, "Select your wallet file", wallet_folder)) if path: self.name_e.setText(path) - def on_filename(path): + def on_filename(filename): + path = os.path.join(wallet_folder, unicode(filename)) try: - self.storage = WalletStorage(unicode(path)) + self.storage = WalletStorage(path) except IOError: self.storage = None if self.storage: