diff options
author | George Hazan <george.hazan@gmail.com> | 2016-08-08 08:19:59 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-08-08 08:19:59 +0000 |
commit | b69451fd2e4166cfa7aad6b96047c70f7545eadc (patch) | |
tree | ecd5e75d88b6386cbe7de766ac8774313722b270 /plugins/TabSRMM/src/globals.cpp | |
parent | cd3898d8ea6f3fc53950f91544c1db2ee86c60d6 (diff) |
- warning fixes;
- more cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@17168 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/globals.cpp')
-rw-r--r-- | plugins/TabSRMM/src/globals.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/TabSRMM/src/globals.cpp b/plugins/TabSRMM/src/globals.cpp index b9bcd45f2c..fe960dbd77 100644 --- a/plugins/TabSRMM/src/globals.cpp +++ b/plugins/TabSRMM/src/globals.cpp @@ -364,6 +364,7 @@ int CGlobals::DBSettingChanged(WPARAM hContact, LPARAM lParam) if (hwnd == 0 && hContact != 0) { // we are not interested in this event if there is no open message window/tab
if (!strcmp(setting, "Status") || !strcmp(setting, "MyHandle") || !strcmp(setting, "Nick") || !strcmp(cws->szModule, SRMSGMOD_T)) {
CContactCache *c = CContactCache::getContactCache(hContact);
+ c->updateStatus();
if (strcmp(setting, "Status"))
c->updateNick();
if (!strcmp(setting, "isFavorite") || !strcmp(setting, "isRecent"))
@@ -397,7 +398,11 @@ int CGlobals::DBSettingChanged(WPARAM hContact, LPARAM lParam) if (hwnd == NULL)
return 0;
- bool fChanged = !strcmp(cws->szSetting, "Status"), fNickChanged = false, fExtendedStatusChange = false;
+ bool fChanged = false, fNickChanged = false, fExtendedStatusChange = false;
+ if (!strcmp(cws->szSetting, "Status")) {
+ c->updateStatus();
+ fChanged = true;
+ }
if (c)
fNickChanged = c->updateNick();
|