summaryrefslogtreecommitdiff
path: root/src/gui/windows/chatwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-22 04:36:26 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-22 04:36:26 +0300
commit3b22410e42be27ac30fc63f020243241d1eea737 (patch)
treef574a40a44bb8a33ff3226c784debd8fcda02330 /src/gui/windows/chatwindow.cpp
parent98ed087de210f5a5a0979b0d60b6d4b21b24ba4c (diff)
downloadplus-3b22410e42be27ac30fc63f020243241d1eea737.tar.gz
plus-3b22410e42be27ac30fc63f020243241d1eea737.tar.bz2
plus-3b22410e42be27ac30fc63f020243241d1eea737.tar.xz
plus-3b22410e42be27ac30fc63f020243241d1eea737.zip
Remove default parameters from chatwindow.h
Diffstat (limited to 'src/gui/windows/chatwindow.cpp')
-rw-r--r--src/gui/windows/chatwindow.cpp8
1 files changed, 5 insertions, 3 deletions
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();
}