diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-15 12:59:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-15 12:59:29 +0300 |
commit | ab92ecc43d1b4d62e2ef3ac95c337dcee5f5fcc6 (patch) | |
tree | 1fc12b7dbe75471b4262483c36c13cc89f45facf /src/gui/popups/popupmenu.cpp | |
parent | 324a3df386950a6f262f2382caa33177f085c03f (diff) | |
download | mv-ab92ecc43d1b4d62e2ef3ac95c337dcee5f5fcc6.tar.gz mv-ab92ecc43d1b4d62e2ef3ac95c337dcee5f5fcc6.tar.bz2 mv-ab92ecc43d1b4d62e2ef3ac95c337dcee5f5fcc6.tar.xz mv-ab92ecc43d1b4d62e2ef3ac95c337dcee5f5fcc6.zip |
Move chat tab types into separate file.
Diffstat (limited to 'src/gui/popups/popupmenu.cpp')
-rw-r--r-- | src/gui/popups/popupmenu.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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<int>(ChatTab::TAB_WHISPER)) + if (tab->getType() == static_cast<int>(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<int>(ChatTab::TAB_PARTY)) + if (tab->getType() == static_cast<int>(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<int>(ChatTab::TAB_WHISPER)) + if (tab->getType() == static_cast<int>(ChatTabType::WHISPER)) { const WhisperTab *const wTab = static_cast<WhisperTab*>(tab); std::string name = wTab->getNick(); |