Browse Source

do not show send tab in seedless wallets

283
ThomasV 13 years ago
parent
commit
51036fdf4e
  1. 2
      lib/gui.py
  2. 2
      lib/gui_qt.py

2
lib/gui.py

@ -575,6 +575,7 @@ class ElectrumWindow:
self.notebook = gtk.Notebook()
self.create_history_tab()
if self.wallet.seed:
self.create_send_tab()
self.create_recv_tab()
self.create_book_tab()
@ -672,6 +673,7 @@ class ElectrumWindow:
thread.start_new_thread(update_status_bar_thread, ())
if self.wallet.seed:
thread.start_new_thread(check_recipient_thread, ())
self.notebook.set_current_page(0)

2
lib/gui_qt.py

@ -157,6 +157,7 @@ class ElectrumWindow(QMainWindow):
self.tabs = tabs = QTabWidget(self)
tabs.addTab(self.create_history_tab(), 'History')
if self.wallet.seed:
tabs.addTab(self.create_send_tab(), 'Send')
tabs.addTab(self.create_receive_tab(), 'Receive')
tabs.addTab(self.create_contacts_tab(),'Contacts')
@ -180,6 +181,7 @@ class ElectrumWindow(QMainWindow):
def connect_slots(self, sender):
if self.wallet.seed:
self.connect(sender, QtCore.SIGNAL('timersignal'), self.check_recipient)
self.previous_payto_e=''

Loading…
Cancel
Save