summaryrefslogtreecommitdiff
path: root/Plugins/extraicons/options.cpp
diff options
context:
space:
mode:
authorpescuma <pescuma@c086bb3d-8645-0410-b8da-73a8550f86e7>2009-04-13 00:26:46 +0000
committerpescuma <pescuma@c086bb3d-8645-0410-b8da-73a8550f86e7>2009-04-13 00:26:46 +0000
commit19a7d971aaca383901babdc0852eadea12c3c0cd (patch)
treeb8624097ff482b694c858c008e81b22a427a9a66 /Plugins/extraicons/options.cpp
parentfda46e22fa15bd77a6d1e2610e9fd9b272dc04fa (diff)
extraicons: merge more than one icon with same name and some fixes
git-svn-id: http://pescuma.googlecode.com/svn/trunk/Miranda@161 c086bb3d-8645-0410-b8da-73a8550f86e7
Diffstat (limited to 'Plugins/extraicons/options.cpp')
-rw-r--r--Plugins/extraicons/options.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/Plugins/extraicons/options.cpp b/Plugins/extraicons/options.cpp
index 8a0e6ba..c1b4852 100644
--- a/Plugins/extraicons/options.cpp
+++ b/Plugins/extraicons/options.cpp
@@ -210,8 +210,14 @@ static BOOL CALLBACK OptionsDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARA
for (int j = 0; j < numSlots; ++j)
{
- if (SendDlgItemMessage(hwndDlg, IDC_SLOT + j * 2, CB_GETCURSEL, 0, 0) != 0)
+ // Has icon?
+ bool found = false;
+ for (i = 0; !found && i < (int) extraIcons.size(); ++i)
+ found = (slots[i] == j);
+ if (found)
continue;
+
+ // Had icon?
if (GetExtraIconBySlot(j) == NULL)
continue;