From 54d4f23914b1b40d5a81345a1eacef6750ed0266 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 8 Apr 2018 19:32:53 +0300 Subject: stupid option removed from group chats according to results of voting --- src/core/stdmsg/src/chat_options.cpp | 1 - src/mir_app/src/chat_clist.cpp | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/core/stdmsg/src/chat_options.cpp b/src/core/stdmsg/src/chat_options.cpp index a45ca08495..c204f62095 100644 --- a/src/core/stdmsg/src/chat_options.cpp +++ b/src/core/stdmsg/src/chat_options.cpp @@ -43,7 +43,6 @@ static branch_t branch1[] = { { LPGENW("Show the topic of the room on your contact list (if supported)"), "TopicOnClist", 0, false }, { LPGENW("Do not play sounds when the chat room is focused"), "SoundsFocus", 0, false }, { LPGENW("Do not pop up the window when joining a chat room"), "PopupOnJoin", 0, false }, - { LPGENW("Toggle the visible state when double clicking in the contact list"), "ToggleVisibility", 0, false }, { LPGENW("Show contact statuses if protocol supports them"), "ShowContactStatus", 0, false }, { LPGENW("Display contact status icon before user role icon"), "ContactStatusFirst", 0, false }, }; diff --git a/src/mir_app/src/chat_clist.cpp b/src/mir_app/src/chat_clist.cpp index 82a7aa4843..b78094d782 100644 --- a/src/mir_app/src/chat_clist.cpp +++ b/src/mir_app/src/chat_clist.cpp @@ -114,8 +114,7 @@ int RoomDoubleclicked(WPARAM hContact, LPARAM) SESSION_INFO *si = SM_FindSession(roomid, szProto); if (si) { - // is the "toggle visibility option set, so we need to close the window? - if (si->pDlg != nullptr && db_get_b(0, CHAT_MODULE, "ToggleVisibility", 0) == 1 && !cli.pfnGetEvent(hContact, 0) && IsWindowVisible(si->pDlg->GetHwnd()) && !IsIconic(si->pDlg->GetHwnd())) { + if (si->pDlg != nullptr && !cli.pfnGetEvent(hContact, 0) && IsWindowVisible(si->pDlg->GetHwnd()) && !IsIconic(si->pDlg->GetHwnd())) { si->pDlg->CloseTab(); return 1; } -- cgit v1.2.3