summaryrefslogtreecommitdiff
path: root/plugins/Sessions
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-03-14 12:57:19 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-03-14 12:57:19 +0300
commit543f38a5a5b7395ce52f19c484e899c1b8cdbd33 (patch)
treee05973be95a7db008b8b0380697478594c73b095 /plugins/Sessions
parent54368d3198f5e7c104e9497350de30c84e810def (diff)
Sessions: no need to hide subcontact's window
Diffstat (limited to 'plugins/Sessions')
-rw-r--r--plugins/Sessions/Src/Utils.cpp2
-rw-r--r--plugins/Sessions/Src/stdafx.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Sessions/Src/Utils.cpp b/plugins/Sessions/Src/Utils.cpp
index 98f731bd2f..0dac6aef1a 100644
--- a/plugins/Sessions/Src/Utils.cpp
+++ b/plugins/Sessions/Src/Utils.cpp
@@ -355,7 +355,7 @@ void OffsetWindow(HWND parent, HWND hwnd, int dx, int dy)
int CheckContactVisibility(MCONTACT hContact)
{
- return !db_get_b(hContact, "CList", "Hidden", 0);
+ return db_mc_isSub(hContact) || !db_get_b(hContact, "CList", "Hidden", 0);
}
void RenameUserDefSession(int ses_count, wchar_t* ptszNewName)
diff --git a/plugins/Sessions/Src/stdafx.h b/plugins/Sessions/Src/stdafx.h
index e88071f852..d691eea7af 100644
--- a/plugins/Sessions/Src/stdafx.h
+++ b/plugins/Sessions/Src/stdafx.h
@@ -31,6 +31,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <m_clc.h>
#include <m_utils.h>
#include <m_langpack.h>
+#include <m_metacontacts.h>
#include <m_icolib.h>
#include <m_message.h>
#include <m_clistint.h>