From 1732a6b13f52b573cc4af91c2d9120c596e6bf78 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 7 May 2018 17:50:35 +0200 Subject: PROTOACCOUNT::bIsLocked: lock status to be stored in memory PROTOACCOUNT became a normal class with constructor & destructor --- plugins/Clist_modern/src/modern_statusbar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/Clist_modern/src') diff --git a/plugins/Clist_modern/src/modern_statusbar.cpp b/plugins/Clist_modern/src/modern_statusbar.cpp index 02fe347366..5764ad7c05 100644 --- a/plugins/Clist_modern/src/modern_statusbar.cpp +++ b/plugins/Clist_modern/src/modern_statusbar.cpp @@ -495,7 +495,7 @@ int ModernDrawStatusBarWorker(HWND hWnd, HDC hDC) } if (hxIcon || hIcon) { // TODO g_StatusBarData.bDrawLockOverlay options to draw locked proto - if (db_get_b(0, p.szAccountName, "LockMainStatus", 0)) { + if (Proto_GetAccount(p.szAccountName)->IsLocked()) { HICON hLockOverlay = Skin_LoadIcon(SKINICON_OTHER_STATUS_LOCKED); if (hLockOverlay != nullptr) { ske_DrawIconEx(hDC, x, iconY, hLockOverlay, iconWidth, iconHeight, 0, nullptr, DI_NORMAL | dim); -- cgit v1.2.3