summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/chat_main.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-07-10 19:44:03 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-07-10 19:44:03 +0300
commita2e38963a647f9f58ff276d2ad9f89f7202c47eb (patch)
treeca043ab94971b442f02ec690d739031eee92f9c5 /plugins/TabSRMM/src/chat_main.cpp
parent18873004444063ae98a9e7fc9214bd3edaa146a7 (diff)
fixes #855 (TabSRMM - Move chat tab to another container switches chat into single conversation)
Diffstat (limited to 'plugins/TabSRMM/src/chat_main.cpp')
-rw-r--r--plugins/TabSRMM/src/chat_main.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/TabSRMM/src/chat_main.cpp b/plugins/TabSRMM/src/chat_main.cpp
index de304dfc85..02c906685f 100644
--- a/plugins/TabSRMM/src/chat_main.cpp
+++ b/plugins/TabSRMM/src/chat_main.cpp
@@ -242,6 +242,11 @@ static int OnHandleGCMenu(WPARAM, LPARAM lParam)
return 0;
}
+static void stubShowRoom(SESSION_INFO *si)
+{
+ ShowRoom(nullptr, si);
+}
+
// load the module
int Chat_Load()
{
@@ -259,7 +264,7 @@ int Chat_Load()
pci->OnReplaceSession = OnReplaceSession;
pci->OnChangeNick = OnChangeNick;
- pci->ShowRoom = ShowRoom;
+ pci->ShowRoom = stubShowRoom;
pci->OnLoadSettings = OnLoadSettings;
// this operation is unsafe, that's why we restore the old pci state on exit