From c40760c05c3900f9d87d48ad5f4fadd3c96bebef Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 10 Feb 2013 20:45:47 +0000 Subject: advaimg could be marked in Options/Plugins as not loadable [fixes: #54] git-svn-id: http://svn.miranda-ng.org/main/trunk@3544 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/plugins/pluginopts.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/modules') diff --git a/src/modules/plugins/pluginopts.cpp b/src/modules/plugins/pluginopts.cpp index fc011535c5..229113f62b 100644 --- a/src/modules/plugins/pluginopts.cpp +++ b/src/modules/plugins/pluginopts.cpp @@ -74,8 +74,10 @@ static BOOL dialogListPlugins(WIN32_FIND_DATA* fd, TCHAR* path, WPARAM, LPARAM l it.iImage = (pi.pluginInfo->flags & 1) ? 0 : 1; it.lParam = (LPARAM)dat; int iRow = ListView_InsertItem(hwndList, &it); - if (isPluginOnWhiteList(fd->cFileName)) - ListView_SetItemState(hwndList, iRow, !isdb ? 0x2000 : 0x3000, LVIS_STATEIMAGEMASK); + if (isPluginOnWhiteList(fd->cFileName)) { + bool bNoCheckbox = isdb || !_tcscmp(dat->fileName, _T("advaimg.dll")); + ListView_SetItemState(hwndList, iRow, bNoCheckbox ? 0x3000 : 0x2000, LVIS_STATEIMAGEMASK); + } if (iRow != -1) { it.mask = LVIF_IMAGE; it.iItem = iRow; -- cgit v1.2.3