diff options
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/tabs/chat/chattab.cpp | 4 | ||||
-rw-r--r-- | src/gui/widgets/tabs/chat/chattab.h | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/gui/widgets/tabs/chat/chattab.cpp b/src/gui/widgets/tabs/chat/chattab.cpp index eef6cfd5d..bd3759c65 100644 --- a/src/gui/widgets/tabs/chat/chattab.cpp +++ b/src/gui/widgets/tabs/chat/chattab.cpp @@ -548,12 +548,12 @@ void ChatTab::playNewMessageSound() const } void ChatTab::showOnline(const std::string &nick, - const bool isOnline) + const Online online) { if (!mShowOnline) return; - if (isOnline) + if (online == Online_true) { // TRANSLATORS: chat message chatLog(strprintf(_("%s is now Online."), nick.c_str())); diff --git a/src/gui/widgets/tabs/chat/chattab.h b/src/gui/widgets/tabs/chat/chattab.h index ac6129194..cc694a874 100644 --- a/src/gui/widgets/tabs/chat/chattab.h +++ b/src/gui/widgets/tabs/chat/chattab.h @@ -25,6 +25,8 @@ #include "enums/gui/chatmsgtype.h" +#include "enums/simpletypes/online.h" + #include "gui/widgets/browserbox.h" #include "gui/widgets/tabs/tab.h" @@ -168,7 +170,7 @@ class ChatTab notfinal : public Tab void addNewRow(std::string &line); void showOnline(const std::string &nick, - const bool isOnline); + const Online online); virtual void playNewMessageSound() const; |