|
|
@ -55,7 +55,8 @@ from electrum.util import (format_time, format_satoshis, format_fee_satoshis, |
|
|
|
export_meta, import_meta, bh2u, bfh, InvalidPassword, |
|
|
|
base_units, base_units_list, base_unit_name_to_decimal_point, |
|
|
|
decimal_point_to_base_unit_name, quantize_feerate, |
|
|
|
UnknownBaseUnit, DECIMAL_POINT_DEFAULT, UserFacingException) |
|
|
|
UnknownBaseUnit, DECIMAL_POINT_DEFAULT, UserFacingException, |
|
|
|
get_new_wallet_name) |
|
|
|
from electrum.transaction import Transaction, TxOutput |
|
|
|
from electrum.address_synchronizer import AddTransactionException |
|
|
|
from electrum.wallet import (Multisig_Wallet, CannotBumpFee, Abstract_Wallet, |
|
|
@ -487,13 +488,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError): |
|
|
|
except FileNotFoundError as e: |
|
|
|
self.show_error(str(e)) |
|
|
|
return |
|
|
|
i = 1 |
|
|
|
while True: |
|
|
|
filename = "wallet_%d" % i |
|
|
|
if filename in os.listdir(wallet_folder): |
|
|
|
i += 1 |
|
|
|
else: |
|
|
|
break |
|
|
|
filename = get_new_wallet_name(wallet_folder) |
|
|
|
full_path = os.path.join(wallet_folder, filename) |
|
|
|
self.gui_object.start_new_window(full_path, None) |
|
|
|
|
|
|
|