From 95684834ecb45261da1640a4ad8143653698b192 Mon Sep 17 00:00:00 2001 From: Fedja Beader Date: Thu, 16 May 2024 13:14:34 +0000 Subject: Refactor loadFromLogFile calls into ChatTab contructor This has the side effect that now #Debug history is also loaded. **** mana/plus!84 --- src/gui/windows/chatwindow.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/gui/windows/chatwindow.cpp') diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp index a3b777655..15363883f 100644 --- a/src/gui/windows/chatwindow.cpp +++ b/src/gui/windows/chatwindow.cpp @@ -1246,8 +1246,6 @@ WhisperTab *ChatWindow::addWhisperTab(const std::string &caption, if ((gui != nullptr) && !playerRelations.isGoodName(nick)) ret->setLabelFont(gui->getSecureFont()); mWhispers[tempNick] = ret; - if (config.getBoolValue("showChatHistory")) - ret->loadFromLogFile(nick); } if (switchTo) @@ -1330,8 +1328,6 @@ ChatTab *ChatWindow::addChannelTab(const std::string &name, ret = new ChannelTab(this, name); mChannels[tempName] = ret; ret->setAllowHighlight(false); - if (config.getBoolValue("showChatHistory")) - ret->loadFromLogFile(name); } if (switchTo) -- cgit v1.2.3-70-g09d2