diff options
author | Robert Pösel <robyer@seznam.cz> | 2015-10-28 08:32:06 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2015-10-28 08:32:06 +0000 |
commit | 9e4456862c2975e726349acf4496ca5ca6b9aa77 (patch) | |
tree | 6e6b850e4297296db8696266ed1bc602400f6028 | |
parent | 8b53cbae6e56c389c4c72088fa24dc22ec569bf9 (diff) |
FileAsMessage: Optimize OnSettingChanged function
git-svn-id: http://svn.miranda-ng.org/main/trunk@15633 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | plugins/FileAsMessage/src/main.cpp | 7 |
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;
}
|