Skip to content
Snippets Groups Projects
Commit b1269252 authored by Vincent Texier's avatar Vincent Texier
Browse files

[fix] fix file import flag not set and bad type

parent 586b2cef
No related branches found
No related tags found
No related merge requests found
...@@ -314,6 +314,8 @@ def get_account_from_row(row: tuple) -> Account: ...@@ -314,6 +314,8 @@ def get_account_from_row(row: tuple) -> Account:
for value in row: for value in row:
if count == 8 and value is not None: if count == 8 and value is not None:
values.append(UUID(hex=value)) values.append(UUID(hex=value))
elif count == 7:
values.append(bool(value))
else: else:
values.append(value) values.append(value)
count += 1 count += 1
......
...@@ -195,9 +195,13 @@ class V1FileImportWindow(QDialog, Ui_V1FileImportDialog): ...@@ -195,9 +195,13 @@ class V1FileImportWindow(QDialog, Ui_V1FileImportDialog):
name = self.nameLineEdit.text().strip() name = self.nameLineEdit.text().strip()
password = self.passwordLineEdit.text() password = self.passwordLineEdit.text()
self.application.accounts.create_new_root_account_v1_from_seed( account = self.application.accounts.create_new_root_account_v1_from_seed(
self.v1_file_wallet.signing_key.seed.hex(), name, password self.v1_file_wallet.signing_key.seed.hex(), name, password
) )
if account is not None:
# set account from file flag
account.file_import = True
self.application.accounts.update(account)
if __name__ == "__main__": if __name__ == "__main__":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment