summaryrefslogtreecommitdiff
path: root/plugins/FileAsMessage
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/FileAsMessage')
-rw-r--r--plugins/FileAsMessage/src/main.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/FileAsMessage/src/main.cpp b/plugins/FileAsMessage/src/main.cpp
index 6277cd5aaa..71adae048a 100644
--- a/plugins/FileAsMessage/src/main.cpp
+++ b/plugins/FileAsMessage/src/main.cpp
@@ -55,8 +55,11 @@ int OnSettingChanged(WPARAM hContact, LPARAM lParam)
{
DBCONTACTWRITESETTING *cws = (DBCONTACTWRITESETTING*)lParam;
- HWND hwnd = WindowList_Find(hFileList, hContact);
- PostMessage(hwnd, WM_FE_STATUSCHANGE, 0, 0);
+ if (hContact && !strcmp(cws->szSetting, "Status"))
+ {
+ HWND hwnd = WindowList_Find(hFileList, hContact);
+ PostMessage(hwnd, WM_FE_STATUSCHANGE, 0, 0);
+ }
return 0;
}