diff options
author | George Hazan <george.hazan@gmail.com> | 2014-02-14 13:22:04 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-02-14 13:22:04 +0000 |
commit | 0168c0457bb31905368134ae8ec1020a08d20970 (patch) | |
tree | ba49dd845b73354e000b52554388a9b497c4a9c4 /plugins/TabSRMM/src/msgdialog.cpp | |
parent | f3639776f82bb243ada2616cac7b95f2e363f670 (diff) |
minor code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@8121 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/msgdialog.cpp')
-rw-r--r-- | plugins/TabSRMM/src/msgdialog.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/TabSRMM/src/msgdialog.cpp b/plugins/TabSRMM/src/msgdialog.cpp index 9ab3fa73ff..ed9860f02f 100644 --- a/plugins/TabSRMM/src/msgdialog.cpp +++ b/plugins/TabSRMM/src/msgdialog.cpp @@ -3204,14 +3204,15 @@ quote_from_last: int iOldItems = TabCtrl_GetItemCount(hwndTab);
if (!_tcsncmp(m_pContainer->szName, szNewName, CONTAINER_NAMELEN))
break;
-
+
TContainerData *pNewContainer = FindContainerByName(szNewName);
if (pNewContainer == NULL)
if ((pNewContainer = CreateContainer(szNewName, FALSE, dat->hContact)) == NULL)
break;
+
db_set_ts(dat->hContact, SRMSGMOD_T, "containerW", szNewName);
dat->fIsReattach = TRUE;
- PostMessage(PluginConfig.g_hwndHotkeyHandler, DM_DOCREATETAB, (WPARAM)pNewContainer, (LPARAM)dat->hContact);
+ PostMessage(PluginConfig.g_hwndHotkeyHandler, DM_DOCREATETAB, (WPARAM)pNewContainer, dat->hContact);
if (iOldItems > 1) // there were more than 1 tab, container is still valid
SendMessage(m_pContainer->hwndActive, WM_SIZE, 0, 0);
SetForegroundWindow(pNewContainer->hwnd);
|