diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-24 21:16:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-24 21:16:44 +0300 |
commit | 4749c8977e2e803692bd844b5400f8d72cbaf17f (patch) | |
tree | b60511d5c852566722590a7b0501a110ce0c2e99 /src/gui/widgets/tabs/chat/chattab.cpp | |
parent | 3a883849147535b449bf4eb24563da4db8a1ef9c (diff) | |
download | manaverse-4749c8977e2e803692bd844b5400f8d72cbaf17f.tar.gz manaverse-4749c8977e2e803692bd844b5400f8d72cbaf17f.tar.bz2 manaverse-4749c8977e2e803692bd844b5400f8d72cbaf17f.tar.xz manaverse-4749c8977e2e803692bd844b5400f8d72cbaf17f.zip |
Add strong typed bool type Online.
Diffstat (limited to 'src/gui/widgets/tabs/chat/chattab.cpp')
-rw-r--r-- | src/gui/widgets/tabs/chat/chattab.cpp | 4 |
1 files changed, 2 insertions, 2 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())); |