abort if file exists

This commit is contained in:
ThomasV 2013-11-11 19:05:32 +01:00
parent 353578986a
commit 4068c4bbf2
1 changed files with 3 additions and 1 deletions

View File

@ -337,7 +337,9 @@ class ElectrumWindow(QMainWindow):
filename = os.path.join(wallet_folder, filename)
storage = WalletStorage({'wallet_path': filename})
assert not storage.file_exists
if storage.file_exists:
QMessageBox.critical(None, "Error", _("File exists"))
return
wizard = installwizard.InstallWizard(self.config, self.network, storage)
wallet = wizard.run()