From b078dfb78c89aea87cd422eae52694738e473cf3 Mon Sep 17 00:00:00 2001 From: dartraiden Date: Sun, 21 Jul 2019 19:59:18 +0300 Subject: Restore "Free for chat" status support (fixes #1963) --- plugins/MirandaG15/src/CAppletManager.cpp | 2 ++ plugins/MirandaG15/src/CAppletManager.h | 2 +- plugins/MirandaG15/src/CContactList.cpp | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) (limited to 'plugins/MirandaG15/src') diff --git a/plugins/MirandaG15/src/CAppletManager.cpp b/plugins/MirandaG15/src/CAppletManager.cpp index 8c88700675..602fec49f4 100644 --- a/plugins/MirandaG15/src/CAppletManager.cpp +++ b/plugins/MirandaG15/src/CAppletManager.cpp @@ -499,6 +499,8 @@ HBITMAP CAppletManager::GetStatusBitmap(int iStatus) return m_ahStatusBitmaps[5]; case ID_STATUS_INVISIBLE: return m_ahStatusBitmaps[6]; + case ID_STATUS_FREECHAT: + return m_ahStatusBitmaps[7]; case ID_STATUS_AWAY: default: return m_ahStatusBitmaps[2]; diff --git a/plugins/MirandaG15/src/CAppletManager.h b/plugins/MirandaG15/src/CAppletManager.h index 35cc98ac7e..80a29d9603 100644 --- a/plugins/MirandaG15/src/CAppletManager.h +++ b/plugins/MirandaG15/src/CAppletManager.h @@ -181,7 +181,7 @@ private: bool m_bScreensaver = false; - HBITMAP m_ahStatusBitmaps[7]; + HBITMAP m_ahStatusBitmaps[8]; HBITMAP m_ahEventBitmaps[4]; HBITMAP m_ahLargeEventBitmaps[4]; }; diff --git a/plugins/MirandaG15/src/CContactList.cpp b/plugins/MirandaG15/src/CContactList.cpp index ee7bd5a20d..c385b7965b 100644 --- a/plugins/MirandaG15/src/CContactList.cpp +++ b/plugins/MirandaG15/src/CContactList.cpp @@ -11,7 +11,8 @@ const int aiStatusPriority[] = 1, // ID_STATUS_DND 40074 7, // ID_STATUS_NA 40075 6, // ID_STATUS_OCCUPIED 40076 - 9 // ID_STATUS_INVISIBLE 40077 + 10, // ID_STATUS_FREECHAT 40077 + 9 // ID_STATUS_INVISIBLE 40078 }; //************************************************************************ -- cgit v1.2.3