diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-07 20:02:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-07 20:02:02 +0300 |
commit | 4fc40c384a3423e43f2e589809c9bc9aa8bda495 (patch) | |
tree | be68429d688d6ef7bcba72c865ebcd080db871c6 /src/gui/widgets/window.cpp | |
parent | 249d59d10905f46ee91683d08386c7bc9936bc4b (diff) | |
download | mv-4fc40c384a3423e43f2e589809c9bc9aa8bda495.tar.gz mv-4fc40c384a3423e43f2e589809c9bc9aa8bda495.tar.bz2 mv-4fc40c384a3423e43f2e589809c9bc9aa8bda495.tar.xz mv-4fc40c384a3423e43f2e589809c9bc9aa8bda495.zip |
For some popup menus use current mouse position.
Diffstat (limited to 'src/gui/widgets/window.cpp')
-rw-r--r-- | src/gui/widgets/window.cpp | 17 |
1 files changed, 1 insertions, 16 deletions
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); } } } |