X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2FfrmMain.cpp;h=6625432c12fb96fb3bbc3f06bb5236c833657d03;hb=57b0514feb18c2ed89f5c6f4b49d6c6513cac9f1;hp=aff45285c7d7edde330829ef16d469857d950aa6;hpb=640ed117f33a19e6d77d49e9ea74e6f0d2e45e29;p=xestiaab%2F.git diff --git a/source/frmMain.cpp b/source/frmMain.cpp index aff4528..6625432 100644 --- a/source/frmMain.cpp +++ b/source/frmMain.cpp @@ -2806,6 +2806,16 @@ void frmMain::SetupSSLStatus( int AccountID ){ std::map::iterator SSLResultIter = AccountSSLResult.find(AccountID); + // Check if a result value has been set. + + if (SSLResultIter == AccountSSLResult.end()){ + + imgSSLStatus->SetBitmap(*imgSSLWarning); + SSLToolTip->SetTip(wxT("Unable to determine SSL information for the '") + prefaccounts.GetAccountName(AccountID) + wxT("' account.")); + return; + + } + if (SSLResultIter->second == 1){ imgSSLStatus->SetBitmap(*imgSSLWarning);