From de2d305a18ab00881de0a22f17d6307ddffe943e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 16 Nov 2013 14:50:52 +0300 Subject: fix "show all languages messages" option for client with language tab disabled. --- src/gui/windows/chatwindow.cpp | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'src/gui') diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp index 508166510..35c8659b4 100644 --- a/src/gui/windows/chatwindow.cpp +++ b/src/gui/windows/chatwindow.cpp @@ -1496,15 +1496,23 @@ void ChatWindow::resortChatLog(std::string line, Own own, } } - if (langChatTab && !channel.empty()) + if (!channel.empty()) { - if (langChatTab->getChannelName() == channel) + if (langChatTab) { - langChatTab->chatLog(line, own, ignoreRecord, tryRemoveColors); + if (langChatTab->getChannelName() == channel) + { + langChatTab->chatLog(line, own, ignoreRecord, tryRemoveColors); + } + else if (mShowAllLang) + { + langChatTab->chatLog(prefix + line, own, + ignoreRecord, tryRemoveColors); + } } else if (mShowAllLang) { - langChatTab->chatLog(prefix + line, own, + localChatTab->chatLog(prefix + line, own, ignoreRecord, tryRemoveColors); } } -- cgit v1.2.3-70-g09d2