ThomasV 6 years ago
parent
commit
2464b3ab81
  1. 6
      electrum/gui/kivy/uix/dialogs/password_dialog.py

6
electrum/gui/kivy/uix/dialogs/password_dialog.py

@ -9,8 +9,9 @@ from decimal import Decimal
from kivy.clock import Clock from kivy.clock import Clock
from electrum.util import InvalidPassword from electrum.util import InvalidPassword
from electrum.wallet import WalletStorage from electrum.wallet import WalletStorage, Wallet
from electrum.gui.kivy.i18n import _ from electrum.gui.kivy.i18n import _
from electrum.wallet_db import WalletDB
from .wallets import WalletDialog from .wallets import WalletDialog
@ -347,7 +348,8 @@ class OpenWalletDialog(PasswordDialog):
else: else:
# it is a bit wasteful load the wallet here and load it again in main_window, # it is a bit wasteful load the wallet here and load it again in main_window,
# but that is fine, because we are progressively enforcing storage encryption. # but that is fine, because we are progressively enforcing storage encryption.
wallet = self.app.daemon.load_wallet(path, None) db = WalletDB(self.storage.read(), manual_upgrades=False)
wallet = Wallet(db, self.storage, config=self.app.electrum_config)
self.require_password = wallet.has_password() self.require_password = wallet.has_password()
self.pw_check = wallet.check_password self.pw_check = wallet.check_password
self.message = self.enter_pw_message if self.require_password else _('Wallet not encrypted') self.message = self.enter_pw_message if self.require_password else _('Wallet not encrypted')

Loading…
Cancel
Save