From ab92ecc43d1b4d62e2ef3ac95c337dcee5f5fcc6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 15 May 2014 12:59:29 +0300 Subject: Move chat tab types into separate file. --- src/gui/popups/popupmenu.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui/popups/popupmenu.cpp') diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index 7629bf9ed..3ecd0f333 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -615,7 +615,7 @@ void PopupMenu::showChatPopup(const int x, const int y, ChatTab *const tab) mBrowserBox->clearRows(); - if (tab->getType() == static_cast(ChatTab::TAB_WHISPER)) + if (tab->getType() == static_cast(ChatTabType::WHISPER)) { // TRANSLATORS: popup menu item // TRANSLATORS: close chat tab @@ -664,7 +664,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() == static_cast(ChatTab::TAB_PARTY)) + if (tab->getType() == static_cast(ChatTabType::PARTY)) { // TRANSLATORS: popup menu item // TRANSLATORS: enable away messages in chat tab @@ -676,7 +676,7 @@ void PopupMenu::showChatPopup(const int x, const int y, ChatTab *const tab) mBrowserBox->addRow("chat clipboard", _("Copy to clipboard")); mBrowserBox->addRow("##3---"); - if (tab->getType() == static_cast(ChatTab::TAB_WHISPER)) + if (tab->getType() == static_cast(ChatTabType::WHISPER)) { const WhisperTab *const wTab = static_cast(tab); std::string name = wTab->getNick(); -- cgit v1.2.3-70-g09d2