diff options
author | George Hazan <ghazan@miranda.im> | 2020-02-16 19:10:08 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-02-16 19:10:08 +0300 |
commit | f2ccf5871c22c9c231c44a1149c944231ac7423e (patch) | |
tree | 1bc65d7a4b8c388b19b306ca2e2df3f834e4f93b /plugins/TabSRMM/src/msgdialog.cpp | |
parent | f0157cebda12743f081e1e43e1c986dde60e2cd0 (diff) |
fixes #2215 (TabSRMM: destroy custom tray icon from its own NeN)
Diffstat (limited to 'plugins/TabSRMM/src/msgdialog.cpp')
-rw-r--r-- | plugins/TabSRMM/src/msgdialog.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/plugins/TabSRMM/src/msgdialog.cpp b/plugins/TabSRMM/src/msgdialog.cpp index 5b80be58eb..cc27fe9d4c 100644 --- a/plugins/TabSRMM/src/msgdialog.cpp +++ b/plugins/TabSRMM/src/msgdialog.cpp @@ -268,7 +268,7 @@ LRESULT CALLBACK SplitterSubclassProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM else if (dat->m_bIsAutosizingInput)
selection = ID_SPLITTERCONTEXT_SETPOSITIONFORTHISSESSION;
else
- selection = TrackPopupMenu(GetSubMenu(PluginConfig.g_hMenuContext, 8), TPM_RETURNCMD, pt.x, pt.y, 0, hwndParent, nullptr);
+ selection = TrackPopupMenu(GetSubMenu(PluginConfig.g_hMenuContext, 6), TPM_RETURNCMD, pt.x, pt.y, 0, hwndParent, nullptr);
switch (selection) {
case ID_SPLITTERCONTEXT_SAVEFORTHISCONTACTONLY:
@@ -569,9 +569,6 @@ bool CMsgDialog::OnInitDialog() m_bActualHistory = M.GetByte(m_hContact, "ActualHistory", 0) != 0;
- // add us to the tray list (if it exists)
- UpdateTrayMenu(nullptr, m_wStatus, m_szProto, m_wszStatus, m_hContact, 0);
-
// subclassing stuff
mir_subclassWindow(GetDlgItem(m_hwnd, IDC_CONTACTPIC), AvatarSubclassProc);
mir_subclassWindow(GetDlgItem(m_hwnd, IDC_SPLITTERX), SplitterSubclassProc);
@@ -720,8 +717,6 @@ void CMsgDialog::OnDestroy() }
if (m_cache->isValid()) { // not valid means the contact was deleted
- AddContactToFavorites(m_hContact, m_cache->getNick(), m_cache->getActiveProto(), m_wszStatus, m_wStatus,
- Skin_LoadProtoIcon(m_cache->getActiveProto(), m_cache->getActiveStatus()), 1, PluginConfig.g_hMenuRecent);
if (m_hContact) {
if (!m_bEditNotesActive) {
char *msg = m_message.GetRichTextRtf(true);
@@ -768,10 +763,6 @@ void CMsgDialog::OnDestroy() if (m_hwndTip)
DestroyWindow(m_hwndTip);
- UpdateTrayMenuState(this, FALSE); // remove me from the tray menu (if still there)
- if (PluginConfig.g_hMenuTrayUnread)
- DeleteMenu(PluginConfig.g_hMenuTrayUnread, m_hContact, MF_BYCOMMAND);
-
if (m_cache->isValid())
g_plugin.setDword("multisplit", m_iMultiSplit);
|