From 87ffacfcb26cb3e6378d3d4189cc565d5f487103 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 23 Feb 2023 15:56:32 +0300 Subject: fixes #3343 (Protocol is not loaded) --- src/mir_app/src/proto_opts.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/mir_app/src/proto_opts.cpp b/src/mir_app/src/proto_opts.cpp index 68e2d71658..06f2eee4a6 100644 --- a/src/mir_app/src/proto_opts.cpp +++ b/src/mir_app/src/proto_opts.cpp @@ -709,7 +709,12 @@ BOOL CAccountListCtrl::OnDrawItem(DRAWITEMSTRUCT *lps) else text.Format(L"%s: %s", wszIdName, TranslateT("")); } - else text.Format(TranslateT("Protocol is not loaded.")); + else { + if (acc->ppro) + text.Format(TranslateT("Protocol is not loaded.")); + else + text.Format(TranslateT("Account is disabled.")); + } DrawText(lps->hDC, text, -1, &lps->rcItem, DT_LEFT | DT_NOPREFIX | DT_SINGLELINE | DT_END_ELLIPSIS); GetTextExtentPoint32(lps->hDC, text, text.GetLength(), &sz); -- cgit v1.2.3