From 9e4456862c2975e726349acf4496ca5ca6b9aa77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Wed, 28 Oct 2015 08:32:06 +0000 Subject: FileAsMessage: Optimize OnSettingChanged function git-svn-id: http://svn.miranda-ng.org/main/trunk@15633 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/FileAsMessage/src/main.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'plugins/FileAsMessage') 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; } -- cgit v1.2.3