Skip to content

Commit 2fee832

Browse files
committed
Fix live account add
1 parent 7ff00f2 commit 2fee832

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/daf_gui/main.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,9 @@ def add_account():
306306
gui_daf_assert_running()
307307
selection = combo_add_object_edit.combo.current()
308308
if selection >= 0:
309-
account: daf.client.ACCOUNT = convert_to_objects(combo_add_object_edit.combo.get())
310-
async_execute(self.connection.add_account(account), parent_window=self.win_main)
309+
fnc: ObjectInfo = combo_add_object_edit.combo.get()
310+
fnc_data = convert_to_objects(fnc.data)
311+
async_execute(self.connection.add_account(**fnc_data), parent_window=self.win_main)
311312
else:
312313
tkdiag.Messagebox.show_error("Combobox does not have valid selection.", "Combo invalid selection")
313314

0 commit comments

Comments
 (0)