diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-12 22:14:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-12 23:17:23 +0300 |
commit | 4642291e19a5a98d07c067baddf1b5fafbab943a (patch) | |
tree | 33dfc87c07e39fecdcaff5542f744e5828cfaac1 /src/gui/popups | |
parent | 05d41da56882a14b44648c8daed5f50979154c16 (diff) | |
download | manaplus-4642291e19a5a98d07c067baddf1b5fafbab943a.tar.gz manaplus-4642291e19a5a98d07c067baddf1b5fafbab943a.tar.bz2 manaplus-4642291e19a5a98d07c067baddf1b5fafbab943a.tar.xz manaplus-4642291e19a5a98d07c067baddf1b5fafbab943a.zip |
Fix popup menu for channel chat tab.
Diffstat (limited to 'src/gui/popups')
-rw-r--r-- | src/gui/popups/popupmenu.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index 57dd21fca..2670b5384 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -685,7 +685,8 @@ void PopupMenu::showChatPopup(const int x, const int y, ChatTab *const tab) mBrowserBox->clearRows(); - if (tab->getType() == static_cast<int>(ChatTabType::WHISPER)) + const ChatTabType::Type &type = tab->getType(); + if (type == ChatTabType::WHISPER || type == ChatTabType::CHANNEL) { // TRANSLATORS: popup menu item // TRANSLATORS: close chat tab @@ -746,7 +747,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>(ChatTabType::WHISPER)) + if (type == ChatTabType::WHISPER) { const WhisperTab *const wTab = static_cast<WhisperTab*>(tab); std::string name = wTab->getNick(); @@ -847,6 +848,7 @@ void PopupMenu::showChatPopup(const int x, const int y, ChatTab *const tab) mBrowserBox->addRow("##3---"); } } + addWindowMenu(chatWindow); // TRANSLATORS: popup menu item // TRANSLATORS: close menu |