diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-12-22 04:36:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-12-22 04:36:26 +0300 |
commit | 3b22410e42be27ac30fc63f020243241d1eea737 (patch) | |
tree | f574a40a44bb8a33ff3226c784debd8fcda02330 /src/gui/windows/chatwindow.cpp | |
parent | 98ed087de210f5a5a0979b0d60b6d4b21b24ba4c (diff) | |
download | mv-3b22410e42be27ac30fc63f020243241d1eea737.tar.gz mv-3b22410e42be27ac30fc63f020243241d1eea737.tar.bz2 mv-3b22410e42be27ac30fc63f020243241d1eea737.tar.xz mv-3b22410e42be27ac30fc63f020243241d1eea737.zip |
Remove default parameters from chatwindow.h
Diffstat (limited to 'src/gui/windows/chatwindow.cpp')
-rw-r--r-- | src/gui/windows/chatwindow.cpp | 8 |
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(); } |