summaryrefslogtreecommitdiff
path: root/src/modules/extraicons
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/extraicons')
-rw-r--r--src/modules/extraicons/extraicons.cpp4
-rw-r--r--src/modules/extraicons/extraicons.h2
-rw-r--r--src/modules/extraicons/options_ei.cpp3
3 files changed, 5 insertions, 4 deletions
diff --git a/src/modules/extraicons/extraicons.cpp b/src/modules/extraicons/extraicons.cpp
index 745083590b..4b7876b79c 100644
--- a/src/modules/extraicons/extraicons.cpp
+++ b/src/modules/extraicons/extraicons.cpp
@@ -320,7 +320,7 @@ void fnReloadExtraIcons()
bImageCreated = true;
}
-void fnSetAllExtraIcons(HWND hwndList, HANDLE hContact)
+void fnSetAllExtraIcons(HANDLE hContact)
{
if (cli.hwndContactTree == 0)
return;
@@ -347,7 +347,7 @@ void fnSetAllExtraIcons(HWND hwndList, HANDLE hContact)
}
g_mutex_bSetAllExtraIconsCycle = 0;
- cli.pfnInvalidateRect(hwndList, NULL, FALSE);
+ cli.pfnInvalidateRect(cli.hwndContactTree, NULL, FALSE);
Sleep(0);
}
diff --git a/src/modules/extraicons/extraicons.h b/src/modules/extraicons/extraicons.h
index b8c346b9f2..c24483def5 100644
--- a/src/modules/extraicons/extraicons.h
+++ b/src/modules/extraicons/extraicons.h
@@ -48,7 +48,7 @@ void DefaultExtraIcons_Load();
HANDLE ExtraIcon_Add(HICON hIcon);
void fnReloadExtraIcons();
-void fnSetAllExtraIcons(HWND hwndList,HANDLE hContact);
+void fnSetAllExtraIcons(HANDLE hContact);
static inline BOOL IsEmpty(const char *str)
{
diff --git a/src/modules/extraicons/options_ei.cpp b/src/modules/extraicons/options_ei.cpp
index e5893ecc9c..a7ce5cb64e 100644
--- a/src/modules/extraicons/options_ei.cpp
+++ b/src/modules/extraicons/options_ei.cpp
@@ -571,7 +571,8 @@ static INT_PTR CALLBACK OptionsDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LP
if (oldSlots[((BaseExtraIcon *) extra)->getID() - 1] == extra->getSlot())
continue;
- extra->applyIcons();
+ if (extra->isEnabled())
+ extra->applyIcons();
}
delete[] oldSlots;