diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-21 18:06:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-21 18:06:43 +0300 |
commit | 20727e946194e9bf984fc9b4dd7687a59fc82fc1 (patch) | |
tree | 41ab0b6e2cc11be61c7306966815f6a821d905c3 /src/gui/popups | |
parent | e787d4c803476b5d5969dd8578cb8a645a7443cb (diff) | |
download | manaplus-20727e946194e9bf984fc9b4dd7687a59fc82fc1.tar.gz manaplus-20727e946194e9bf984fc9b4dd7687a59fc82fc1.tar.bz2 manaplus-20727e946194e9bf984fc9b4dd7687a59fc82fc1.tar.xz manaplus-20727e946194e9bf984fc9b4dd7687a59fc82fc1.zip |
Convert chattabtype into strong typed enum.
Diffstat (limited to 'src/gui/popups')
-rw-r--r-- | src/gui/popups/popupmenu.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index 1231a03d3..18f034e67 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -818,7 +818,7 @@ void PopupMenu::showChatPopup(const int x, const int y, ChatTab *const tab) mBrowserBox->clearRows(); - const ChatTabType::Type &type = tab->getType(); + const ChatTabTypeT &type = tab->getType(); if (type == ChatTabType::WHISPER || type == ChatTabType::CHANNEL) { // TRANSLATORS: popup menu item @@ -868,7 +868,7 @@ void PopupMenu::showChatPopup(const int x, const int y, ChatTab *const tab) mBrowserBox->addRow("disable away", _("Disable away")); } mBrowserBox->addRow("##3---"); - if (tab->getType() == CAST_S32(ChatTabType::PARTY)) + if (type == ChatTabType::PARTY) { // TRANSLATORS: popup menu item // TRANSLATORS: enable away messages in chat tab |