From 3ce55de1e172c37ba32cdb7b2200b8758e2c8459 Mon Sep 17 00:00:00 2001 From: James Booth Date: Mon, 26 Oct 2015 23:29:01 +0000 Subject: ui_smp_recipient_initiated_q takes ProfChatWin --- src/otr/otrlibv4.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/otr/otrlibv4.c') diff --git a/src/otr/otrlibv4.c b/src/otr/otrlibv4.c index 1f2c4057..59cd7a0d 100644 --- a/src/otr/otrlibv4.c +++ b/src/otr/otrlibv4.c @@ -189,7 +189,9 @@ cb_handle_smp_event(void *opdata, OtrlSMPEvent smp_event, break; case OTRL_SMPEVENT_ASK_FOR_ANSWER: - ui_smp_recipient_initiated_q(context->username, question); + if (chatwin) { + ui_smp_recipient_initiated_q(chatwin, question); + } break; case OTRL_SMPEVENT_SUCCESS: -- cgit 1.4.1-2-gfad0