From 1c6e1a05125892072984932ec1ac4468215a87df Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 22 Aug 2017 17:20:13 +0300 Subject: unused variable removed --- plugins/TabSRMM/src/msgdialog.cpp | 2 +- plugins/TabSRMM/src/msgs.cpp | 1 - plugins/TabSRMM/src/msgs.h | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) (limited to 'plugins') diff --git a/plugins/TabSRMM/src/msgdialog.cpp b/plugins/TabSRMM/src/msgdialog.cpp index 9dd5412534..252f6bb01e 100644 --- a/plugins/TabSRMM/src/msgdialog.cpp +++ b/plugins/TabSRMM/src/msgdialog.cpp @@ -872,7 +872,7 @@ void CSrmmWindow::OnDestroy() if (m_pContainer->dwFlags & CNT_SIDEBAR) m_pContainer->SideBar->removeSession(this); m_cache->setWindowData(); - if (!m_bIsReattach && m_hContact && M.GetByte("deletetemp", 0)) + if (m_hContact && M.GetByte("deletetemp", 0)) if (db_get_b(m_hContact, "CList", "NotOnList", 0)) db_delete_contact(m_hContact); diff --git a/plugins/TabSRMM/src/msgs.cpp b/plugins/TabSRMM/src/msgs.cpp index 2e7473b05a..afd600d8c1 100644 --- a/plugins/TabSRMM/src/msgs.cpp +++ b/plugins/TabSRMM/src/msgs.cpp @@ -197,7 +197,6 @@ INT_PTR CTabBaseDlg::DlgProc(UINT msg, WPARAM wParam, LPARAM lParam) break; db_set_ws(m_hContact, SRMSGMOD_T, "containerW", szNewName); - m_bIsReattach = true; PostMessage(PluginConfig.g_hwndHotkeyHandler, DM_DOCREATETAB, (WPARAM)pNewContainer, m_hContact); if (iOldItems > 1) // there were more than 1 tab, container is still valid SendMessage(m_pContainer->m_hwndActive, WM_SIZE, 0, 0); diff --git a/plugins/TabSRMM/src/msgs.h b/plugins/TabSRMM/src/msgs.h index 160f57504a..baef9b9636 100644 --- a/plugins/TabSRMM/src/msgs.h +++ b/plugins/TabSRMM/src/msgs.h @@ -287,7 +287,6 @@ protected: bool m_bShowInfoAvatar, m_bShowUIElements; bool m_bUseOffset; bool m_bkeyProcessed; - bool m_bIsReattach; bool m_fLimitedUpdate; bool m_bClrAdded; bool m_bInsertMode; -- cgit v1.2.3