diff options
author | George Hazan <ghazan@miranda.im> | 2023-02-23 15:56:32 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2023-02-23 15:56:32 +0300 |
commit | 87ffacfcb26cb3e6378d3d4189cc565d5f487103 (patch) | |
tree | e92abd38f3941c672fbcf3700bdd488b3976d670 /src | |
parent | 67ce0ffd1f87f1f68ddad6b1fbae64bdd0041d97 (diff) |
fixes #3343 (Protocol is not loaded)
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/proto_opts.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
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("<unknown>"));
}
- 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);
|