diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-11-16 14:50:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-11-16 14:50:52 +0300 |
commit | de2d305a18ab00881de0a22f17d6307ddffe943e (patch) | |
tree | b86977bc86365ce212c19ca2eecc711382d02f86 /src | |
parent | 3007ca23605bd15418de6773f79ae94604cc430c (diff) | |
download | plus-de2d305a18ab00881de0a22f17d6307ddffe943e.tar.gz plus-de2d305a18ab00881de0a22f17d6307ddffe943e.tar.bz2 plus-de2d305a18ab00881de0a22f17d6307ddffe943e.tar.xz plus-de2d305a18ab00881de0a22f17d6307ddffe943e.zip |
fix "show all languages messages" option for client with language tab disabled.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/windows/chatwindow.cpp | 16 |
1 files changed, 12 insertions, 4 deletions
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); } } |