From 4642291e19a5a98d07c067baddf1b5fafbab943a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 12 Oct 2014 22:14:50 +0300 Subject: Fix popup menu for channel chat tab. --- src/gui/popups/popupmenu.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/gui/popups/popupmenu.cpp') 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(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(ChatTabType::WHISPER)) + if (type == ChatTabType::WHISPER) { const WhisperTab *const wTab = static_cast(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 -- cgit v1.2.3-60-g2f50