summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-05-07 17:50:35 +0200
committerGeorge Hazan <ghazan@miranda.im>2018-05-07 18:07:33 +0200
commit1732a6b13f52b573cc4af91c2d9120c596e6bf78 (patch)
tree57e853c70f4bf51bfedbd8a50874746e5a3bc971 /plugins/Clist_modern/src
parentd1c9c916887e91a32d7794c83c37ff1c512660d9 (diff)
PROTOACCOUNT::bIsLocked: lock status to be stored in memory
PROTOACCOUNT became a normal class with constructor & destructor
Diffstat (limited to 'plugins/Clist_modern/src')
-rw-r--r--plugins/Clist_modern/src/modern_statusbar.cpp2
1 files changed, 1 insertions, 1 deletions
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);