Browse Source

fix bugs in sweep dialog

283
ThomasV 8 years ago
parent
commit
f5380b3500
  1. 5
      gui/qt/main_window.py

5
gui/qt/main_window.py

@ -42,6 +42,7 @@ import PyQt4.QtCore as QtCore
import icons_rc
from electrum.bitcoin import COIN, is_valid, TYPE_ADDRESS
from electrum.keystore import is_private_key
from electrum.plugins import run_hook
from electrum.i18n import _
from electrum.util import (block_explorer, block_explorer_info, format_time,
@ -2172,7 +2173,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
keys_e.setTabChangesFocus(True)
vbox.addWidget(keys_e)
addresses = self.wallet.get_unused_addresses(None)
addresses = self.wallet.get_unused_addresses()
h, address_e = address_field(addresses)
vbox.addLayout(h)
@ -2188,7 +2189,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
def get_pk():
pk = str(keys_e.toPlainText()).strip()
if Wallet.is_private_key(pk):
if is_private_key(pk):
return pk.split()
f = lambda: button.setEnabled(get_address() is not None and get_pk() is not None)

Loading…
Cancel
Save