summaryrefslogtreecommitdiff
path: root/plugins/ModernOpt/src/mopt_ignore.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2013-02-10 20:15:00 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2013-02-10 20:15:00 +0000
commit8b3120de336f515ffd715c7939b4dc63770c32bd (patch)
treee9d000a4755130f4dc738c6eea132e4603e19227 /plugins/ModernOpt/src/mopt_ignore.cpp
parent5feac927bfb6db11a138b6ce773b8704396c569c (diff)
fixed crash on unloading plugin (fixes #47)
git-svn-id: http://svn.miranda-ng.org/main/trunk@3543 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ModernOpt/src/mopt_ignore.cpp')
-rw-r--r--plugins/ModernOpt/src/mopt_ignore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/ModernOpt/src/mopt_ignore.cpp b/plugins/ModernOpt/src/mopt_ignore.cpp
index 1d2ed1a202..9c0e429cae 100644
--- a/plugins/ModernOpt/src/mopt_ignore.cpp
+++ b/plugins/ModernOpt/src/mopt_ignore.cpp
@@ -54,7 +54,7 @@ static void SetAllContactIcons(HWND hwndList, int count)
DWORD hItem = SendMessage(hwndList,CLM_FINDCONTACT,(WPARAM)hContact,0);
for (int i = 0; i < count; ++i)
SendMessage(hwndList,CLM_SETEXTRAIMAGE,hItem,MAKELPARAM(i, i+1));
- if (!DBGetContactSettingByte(hContact,"CList","Hidden",0))
+ if (!db_get_b(hContact,"CList","Hidden",0))
SendMessage(hwndList,CLM_SETCHECKMARK,hItem,1);
}
while(hContact=db_find_next(hContact));