summaryrefslogtreecommitdiff
path: root/src/modules/plugins/pluginopts.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-02-10 20:45:47 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-02-10 20:45:47 +0000
commitc40760c05c3900f9d87d48ad5f4fadd3c96bebef (patch)
treea33626268c825c97ad4153ffafec677aef35c3a2 /src/modules/plugins/pluginopts.cpp
parent8b3120de336f515ffd715c7939b4dc63770c32bd (diff)
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
Diffstat (limited to 'src/modules/plugins/pluginopts.cpp')
-rw-r--r--src/modules/plugins/pluginopts.cpp6
1 files changed, 4 insertions, 2 deletions
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;