diff --git a/gui/v2/ui/pages/ticket_or_billing_choice_page.py b/gui/v2/ui/pages/ticket_or_billing_choice_page.py index 08c871a..d32a648 100755 --- a/gui/v2/ui/pages/ticket_or_billing_choice_page.py +++ b/gui/v2/ui/pages/ticket_or_billing_choice_page.py @@ -104,6 +104,7 @@ class TicketOrBillingChoicePage(Page): 'id': int(profile_id), 'use_ticket': which_ticket, 'ticket_location': candidates[0], + 'profile': profile } menu_page = self.custom_window.navigator.get_cached("menu") if menu_page: diff --git a/gui/v2/workers/ticketing_worker_thread.py b/gui/v2/workers/ticketing_worker_thread.py index 524ee6f..1ea0d74 100755 --- a/gui/v2/workers/ticketing_worker_thread.py +++ b/gui/v2/workers/ticketing_worker_thread.py @@ -73,10 +73,11 @@ class TicketingWorkerThread(QThread): self.saved_blind_prep_done.emit(result) elif self.action == 'USE_TICKET': result = use_ticket( - self.params['which_ticket'], - self.params['which_location'], - ticket_observer, - connection_observer, + which_ticket=self.params['which_ticket'], + which_location=self.params['which_location'], + ticket_observer=ticket_observer, + connection_observer=connection_observer, + profile=self.params['profile'] ) self.use_done.emit(result) except Exception as e: diff --git a/gui/v2/workers/worker.py b/gui/v2/workers/worker.py index 7ded10e..a31ec3a 100755 --- a/gui/v2/workers/worker.py +++ b/gui/v2/workers/worker.py @@ -215,7 +215,13 @@ class Worker(QObject): last_msg = None for cand in candidates: try: - outcome = use_ticket(which_ticket, cand, ticket_observer, connection_observer) + outcome = use_ticket( + which_ticket=which_ticket, + which_location=cand, + ticket_observer=ticket_observer, + connection_observer=connection_observer, + profile=self.profile + ) except Exception as e: last_msg = str(e) continue