@ -1530,7 +1530,8 @@ class JMMainWindow(QMainWindow):
Initializes by syncing .
Initializes by syncing .
'''
'''
if not seed :
if not seed :
success = wallet_generate_recover_bip39 ( " generate " ,
try :
success = wallet_generate_recover_bip39 ( " generate " ,
" wallets " ,
" wallets " ,
" wallet.jmdat " ,
" wallet.jmdat " ,
callbacks = ( self . displayWords ,
callbacks = ( self . displayWords ,
@ -1538,10 +1539,14 @@ class JMMainWindow(QMainWindow):
self . getPassword ,
self . getPassword ,
self . getWalletFileName ,
self . getWalletFileName ,
self . promptMnemonicExtension ) )
self . promptMnemonicExtension ) )
if not success :
if not success :
JMQtMessageBox ( self , " Failed to create new wallet file. " ,
JMQtMessageBox ( self , " Failed to create new wallet file. " ,
title = " Error " , mbtype = " warn " )
title = " Error " , mbtype = " warn " )
return
except Exception as e :
JMQtMessageBox ( self , e . args [ 0 ] , title = " Error " , mbtype = " warn " )
return
return
JMQtMessageBox ( self , ' Wallet saved to ' + self . walletname ,
JMQtMessageBox ( self , ' Wallet saved to ' + self . walletname ,
title = " Wallet created " )
title = " Wallet created " )
self . loadWalletFromBlockchain ( self . walletname , pwd = self . textpassword ,
self . loadWalletFromBlockchain ( self . walletname , pwd = self . textpassword ,