summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2013-05-15 21:24:27 +0000
committerRobert Pösel <robyer@seznam.cz>2013-05-15 21:24:27 +0000
commita55fb1498da50152f3b21248e9b21781c0bb5b7b (patch)
tree454bd2da0086f9db865333bd780d433dbe1f3e8b /plugins/TabSRMM
parent479ab6911b0a7496eb16e6d3686db9826fd92992 (diff)
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
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r--plugins/TabSRMM/src/msgs.cpp7
1 files 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;
}