summaryrefslogtreecommitdiff
path: root/src/gui/windows/chatwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/chatwindow.cpp')
-rw-r--r--src/gui/windows/chatwindow.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp
index 2cee38db7..363af7284 100644
--- a/src/gui/windows/chatwindow.cpp
+++ b/src/gui/windows/chatwindow.cpp
@@ -45,9 +45,12 @@
#include "gui/gui.h"
#include "gui/popupmanager.h"
#include "gui/skin.h"
+#include "gui/viewport.h"
#include "gui/models/colorlistmodel.h"
+#include "gui/popups/popupmenu.h"
+
#include "gui/windows/emotewindow.h"
#include "gui/windows/setupwindow.h"
#include "gui/widgets/tabbedarea.h"
@@ -657,7 +660,7 @@ void ChatWindow::mousePressed(MouseEvent &event)
if (event.getButton() == MouseButton::RIGHT)
{
- if (popupManager)
+ if (popupMenu)
{
Tab *const tab = mChatTabs->getSelectedTab();
if (tab)
@@ -674,7 +677,11 @@ void ChatWindow::mousePressed(MouseEvent &event)
{
ChatTab *const cTab = dynamic_cast<ChatTab*>(tab);
if (cTab)
- popupManager->showChatPopup(cTab);
+ {
+ popupMenu->showChatPopup(viewport->getMouseX(),
+ viewport->getMouseY(),
+ cTab);
+ }
}
}
}