From 9e6f693e99170712ef428989cc4e4f2ffce11837 Mon Sep 17 00:00:00 2001 From: "admin@progandy.co.cc" Date: Wed, 22 Sep 2010 14:23:36 +0000 Subject: - changed dialog for option "verify dialog on new fingerprint" git-svn-id: http://mirotr.googlecode.com/svn/trunk@32 eced67a3-f377-a0ae-92ae-d6de1850b05a --- MirOTR/otr.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/MirOTR/otr.cpp b/MirOTR/otr.cpp index 1d9e882..ce7ff1d 100644 --- a/MirOTR/otr.cpp +++ b/MirOTR/otr.cpp @@ -226,7 +226,6 @@ extern "C" { /* A new fingerprint for the given user has been received. */ void otr_gui_new_fingerprint(void *opdata, OtrlUserState us, const char *accountname, const char *protocol, const char *username, unsigned char fingerprint[20]) { DEBUGOUT_T("OTR_GUI_NEW_FUNGERPRINT") - //MessageBox(0, username, Translate("OTR New Fingerprint"), MB_OK); ConnContext *context = otrl_context_find(us, username, accountname, protocol, TRUE, 0, add_appdata, opdata); Fingerprint *fp = otrl_context_find_fingerprint(context, fingerprint, TRUE, 0); @@ -253,7 +252,7 @@ extern "C" { if(trusted == TRUST_PRIVATE) { mir_sntprintf(buff, 1024, TranslateT(LANG_SESSION_START_OTR), contact_get_nameT((HANDLE)opdata)); } else if (trusted == TRUST_UNVERIFIED) { - if (options.autoshow_verify) VerifyContextDialog(context); + if (options.autoshow_verify) SMPInitDialog(context); //VerifyContextDialog(context); mir_sntprintf(buff, 1024, TranslateT(LANG_SESSION_START_OTR_VERIFY), contact_get_nameT((HANDLE)opdata)); } else { // should never happen mir_sntprintf(buff, 1024, TranslateT(LANG_SESSION_NOT_STARTED_OTR), contact_get_nameT((HANDLE)opdata)); @@ -286,7 +285,7 @@ extern "C" { if(trusted == TRUST_PRIVATE) { mir_sntprintf(buff, 1024, TranslateT(LANG_SESSION_CONTINUE_OTR), contact_get_nameT((HANDLE)opdata)); } else if (trusted == TRUST_UNVERIFIED) { - if (options.autoshow_verify) VerifyContextDialog(context); + if (options.autoshow_verify) SMPInitDialog(context); //VerifyContextDialog(context); mir_sntprintf(buff, 1024, TranslateT(LANG_SESSION_CONTINUE_OTR_VERIFY), contact_get_nameT((HANDLE)opdata)); } else { // should never happen mir_sntprintf(buff, 1024, TranslateT(LANG_SESSION_NOT_STARTED_OTR), contact_get_nameT((HANDLE)opdata)); @@ -395,5 +394,5 @@ gcry_error_t otrl_privkey_write_FILEp(OtrlUserState us, FILE *privf); if ( fprintf(privf, ")\n") < 0 ) return gcry_error_from_errno(errno); return gcry_error(GPG_ERR_NO_ERROR); - + } \ No newline at end of file -- cgit v1.2.3