From 3b22410e42be27ac30fc63f020243241d1eea737 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 22 Dec 2017 04:36:26 +0300 Subject: Remove default parameters from chatwindow.h --- src/gui/windows/chatwindow.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/gui/windows/chatwindow.cpp') diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp index 2afbe7caf..9eb01a3ad 100644 --- a/src/gui/windows/chatwindow.cpp +++ b/src/gui/windows/chatwindow.cpp @@ -1062,7 +1062,8 @@ void ChatWindow::attributeChanged(const AttributesT id, PRAGMA45(GCC diagnostic pop) } -void ChatWindow::addInputText(const std::string &text, const bool space) +void ChatWindow::addInputText(const std::string &text, + const bool space) { const int caretPos = mChatInput->getCaretPosition(); const std::string &inputText = mChatInput->getText(); @@ -1083,7 +1084,8 @@ void ChatWindow::addItemText(const std::string &item) { std::ostringstream text; text << "[" << item << "]"; - addInputText(text.str()); + addInputText(text.str(), + true); } void ChatWindow::setVisible(Visible visible) @@ -1122,7 +1124,7 @@ void ChatWindow::addWhisper(const std::string &restrict nick, } else if (config.getBoolValue("whispertab")) { - tab = addWhisperTab(nick, nick); + tab = addWhisperTab(nick, nick, false); if (tab != nullptr) saveState(); } -- cgit v1.2.3-60-g2f50