From a55fb1498da50152f3b21248e9b21781c0bb5b7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Wed, 15 May 2013 21:24:27 +0000 Subject: TabSRMM: Fixed changing text in statusbar for not-active tab/window. git-svn-id: http://svn.miranda-ng.org/main/trunk@4665 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/msgs.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/TabSRMM/src/msgs.cpp b/plugins/TabSRMM/src/msgs.cpp index 65a1adea23..1e37931afa 100644 --- a/plugins/TabSRMM/src/msgs.cpp +++ b/plugins/TabSRMM/src/msgs.cpp @@ -149,12 +149,15 @@ static INT_PTR SetStatusText(WPARAM wParam, LPARAM lParam) DM_UpdateLastMessage(dat); return 0; } - + _tcsncpy(dat->szStatusBar, (TCHAR *)lParam, SIZEOF(dat->szStatusBar)); + + if (pContainer->hwndActive != dat->hwnd) + return 1; } else { SESSION_INFO *si = SM_FindSessionByHCONTACT((HANDLE)wParam); - if (si == NULL || si->hWnd == 0 || (pContainer = si->pContainer) == NULL) + if (si == NULL || si->hWnd == 0 || (pContainer = si->pContainer) == NULL || pContainer->hwndActive != si->hWnd) return 1; } -- cgit v1.2.3