diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-01-25 21:39:23 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-01-25 21:39:23 +0000 |
commit | b6b84ffaf51673a3b9b2851602428ac815b680c4 (patch) | |
tree | 51733a10acfde433c5f3a15b573bfc865ee42d5a /plugins/TabSRMM/src/sidebar.cpp | |
parent | 619f8bc3cf5e9f4aac984b8f855b74293fbb787d (diff) |
TabSRMM:
- Fixed memory issues
- Fixed translation issue (fixes #869)
git-svn-id: http://svn.miranda-ng.org/main/trunk@11909 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/sidebar.cpp')
-rw-r--r-- | plugins/TabSRMM/src/sidebar.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/TabSRMM/src/sidebar.cpp b/plugins/TabSRMM/src/sidebar.cpp index b663bb8ac0..1f0b809d51 100644 --- a/plugins/TabSRMM/src/sidebar.cpp +++ b/plugins/TabSRMM/src/sidebar.cpp @@ -105,12 +105,12 @@ void CSideBarButton::_create() ::SendMessage(m_hwnd, BUTTONSETASTHEMEDBTN, TRUE, 0);
::SendMessage(m_hwnd, BUTTONSETCONTAINER, (LPARAM)m_sideBar->getContainer(), 0);
m_buttonControl = (TSButtonCtrl *)::GetWindowLongPtr(m_hwnd, 0);
+ if (m_id == IDC_SIDEBARUP || m_id == IDC_SIDEBARDOWN)
+ ::SetParent(m_hwnd, m_sideBar->getContainer()->hwnd);
}
else
delete this;
- if (m_id == IDC_SIDEBARUP || m_id == IDC_SIDEBARDOWN)
- ::SetParent(m_hwnd, m_sideBar->getContainer()->hwnd);
}
CSideBarButton::~CSideBarButton()
@@ -344,7 +344,7 @@ void CSideBarButton::activateSession() const */
void CSideBarButton::invokeContextMenu()
{
- const TContainerData* pContainer = m_sideBar->getContainer();
+ const TContainerData *pContainer = m_sideBar->getContainer();
if (pContainer) {
TSideBarNotify tsn = {0};
|