From 543f38a5a5b7395ce52f19c484e899c1b8cdbd33 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 14 Mar 2018 12:57:19 +0300 Subject: Sessions: no need to hide subcontact's window --- plugins/Sessions/Src/Utils.cpp | 2 +- plugins/Sessions/Src/stdafx.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/Sessions/Src') 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 . #include #include #include +#include #include #include #include -- cgit v1.2.3