From 4fc40c384a3423e43f2e589809c9bc9aa8bda495 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 7 Sep 2014 20:02:02 +0300 Subject: For some popup menus use current mouse position. --- src/gui/widgets/window.cpp | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'src/gui/widgets/window.cpp') diff --git a/src/gui/widgets/window.cpp b/src/gui/widgets/window.cpp index dd7627b23..5cf430821 100644 --- a/src/gui/widgets/window.cpp +++ b/src/gui/widgets/window.cpp @@ -769,22 +769,7 @@ void Window::mousePressed(MouseEvent &event) if (popupMenu) { event.consume(); - - if (viewport) - { - popupMenu->showWindowPopup(this, - viewport->mMouseX, - viewport->mMouseY); - } - else - { - int mouseX = 0; - int mouseY = 0; - Gui::getMouseState(&mouseX, &mouseY); - popupMenu->showWindowPopup(this, - mouseX, - mouseY); - } + popupMenu->showWindowPopup(this); } } } -- cgit v1.2.3-70-g09d2