call save_seed only in main script

This commit is contained in:
thomasv 2013-04-10 12:56:07 +02:00
parent f32f85fb78
commit d09d4e4055
2 changed files with 3 additions and 2 deletions

View File

@ -137,7 +137,9 @@ if __name__ == '__main__':
if a =='create': if a =='create':
wallet.init_seed(None) wallet.init_seed(None)
gui.show_seed() gui.show_seed()
if not gui.verify_seed(): if gui.verify_seed():
wallet.save_seed()
else:
exit() exit()
else: else:

View File

@ -2307,7 +2307,6 @@ class ElectrumGui:
QMessageBox.warning(None, _('Error'), 'incorrect seed', 'OK') QMessageBox.warning(None, _('Error'), 'incorrect seed', 'OK')
return False return False
else: else:
self.wallet.save_seed()
return True return True