diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-02-28 00:26:43 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-02-28 00:26:43 +0000 |
commit | 4410284da77786594d7009b6c515176de0d5a51e (patch) | |
tree | 949362dafe500e6ef07006ade5a9920d72d2c55e /src/core/stdchat | |
parent | 2095a324e774565a588425ed4a4986063e3c08fa (diff) |
Core:
-Some major and minor issues fixed
git-svn-id: http://svn.miranda-ng.org/main/trunk@12280 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/core/stdchat')
-rw-r--r-- | src/core/stdchat/src/window.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/core/stdchat/src/window.cpp b/src/core/stdchat/src/window.cpp index 87309e530c..d89dc41914 100644 --- a/src/core/stdchat/src/window.cpp +++ b/src/core/stdchat/src/window.cpp @@ -2138,11 +2138,13 @@ LABEL_SHOWWINDOW: case ID_LOCKPOSITION:
TabCtrl_GetItem(GetDlgItem(hwndDlg, IDC_TAB), i, &id);
- if (!(GetMenuState(hSubMenu, ID_LOCKPOSITION, MF_BYCOMMAND)&MF_CHECKED)) {
- if (s->hContact)
- db_set_w(s->hContact, s->pszModule, "TabPosition", (WORD)(i + 1));
+ if (s!=0) {
+ if (!(GetMenuState(hSubMenu, ID_LOCKPOSITION, MF_BYCOMMAND)&MF_CHECKED)) {
+ if (s->hContact)
+ db_set_w(s->hContact, s->pszModule, "TabPosition", (WORD)(i + 1));
+ }
+ else db_unset(s->hContact, s->pszModule, "TabPosition");
}
- else db_unset(s->hContact, s->pszModule, "TabPosition");
break;
}
}
|