remove dead code
This commit is contained in:
@@ -820,8 +820,8 @@ class BitcoinGUI:
|
|||||||
|
|
||||||
hbox = gtk.HBox()
|
hbox = gtk.HBox()
|
||||||
if not is_recv:
|
if not is_recv:
|
||||||
button = gtk.Button("New address")
|
button = gtk.Button("New")
|
||||||
button.connect("clicked", self.newaddress_dialog, is_recv)
|
button.connect("clicked", self.newaddress_dialog)
|
||||||
button.show()
|
button.show()
|
||||||
hbox.pack_start(button,False)
|
hbox.pack_start(button,False)
|
||||||
|
|
||||||
@@ -967,9 +967,7 @@ class BitcoinGUI:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
def newaddress_dialog(self, w, is_recv):
|
def newaddress_dialog(self, w):
|
||||||
|
|
||||||
if not is_recv:
|
|
||||||
|
|
||||||
title = "New sending address"
|
title = "New sending address"
|
||||||
dialog = gtk.Dialog(title, parent=self.window,
|
dialog = gtk.Dialog(title, parent=self.window,
|
||||||
@@ -1019,24 +1017,6 @@ class BitcoinGUI:
|
|||||||
errorDialog.show()
|
errorDialog.show()
|
||||||
errorDialog.run()
|
errorDialog.run()
|
||||||
errorDialog.destroy()
|
errorDialog.destroy()
|
||||||
else:
|
|
||||||
success, ret = self.wallet.get_new_address()
|
|
||||||
self.update_session = True # we created a new address
|
|
||||||
if success:
|
|
||||||
address = ret
|
|
||||||
#if label: self.wallet.labels[address] = label
|
|
||||||
self.wallet.save()
|
|
||||||
self.update_receiving_tab()
|
|
||||||
else:
|
|
||||||
msg = ret
|
|
||||||
errorDialog = gtk.MessageDialog(
|
|
||||||
parent=self.window,
|
|
||||||
flags=gtk.DIALOG_MODAL,
|
|
||||||
buttons= gtk.BUTTONS_CLOSE,
|
|
||||||
message_format = msg)
|
|
||||||
errorDialog.show()
|
|
||||||
errorDialog.run()
|
|
||||||
errorDialog.destroy()
|
|
||||||
|
|
||||||
|
|
||||||
def network_dialog( self, w ):
|
def network_dialog( self, w ):
|
||||||
|
|||||||
Reference in New Issue
Block a user