convert address to str in sign_message; update tabs after import

This commit is contained in:
ThomasV 2013-01-05 22:30:55 +01:00
parent eb5c521469
commit c30deb28d3
1 changed files with 3 additions and 1 deletions

View File

@ -1284,7 +1284,7 @@ class ElectrumWindow(QMainWindow):
password = None
try:
signature = self.wallet.sign_message(sign_address.text(), str(sign_message.toPlainText()), password)
signature = self.wallet.sign_message(str(sign_address.text()), str(sign_message.toPlainText()), password)
sign_signature.setText(signature)
except BaseException, e:
self.show_message(str(e))
@ -1559,6 +1559,8 @@ class ElectrumWindow(QMainWindow):
QMessageBox.critical(None, "Unable to import key", "error")
else:
QMessageBox.information(None, "Key imported", addr)
self.update_receive_tab()
self.update_history_tab()
except BaseException as e:
QMessageBox.critical(None, "Unable to import key", str(e))