From 2cb9f5c3d47077a459fabf15800b1c45cfdacb3a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 17 Aug 2014 13:40:14 +0300 Subject: Remove proxy methods used for access popup menu. --- src/gui/widgets/spellshortcutcontainer.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/gui/widgets/spellshortcutcontainer.cpp') diff --git a/src/gui/widgets/spellshortcutcontainer.cpp b/src/gui/widgets/spellshortcutcontainer.cpp index 8960725d5..164513d73 100644 --- a/src/gui/widgets/spellshortcutcontainer.cpp +++ b/src/gui/widgets/spellshortcutcontainer.cpp @@ -32,6 +32,7 @@ #include "gui/fonts/font.h" +#include "gui/popups/popupmenu.h" #include "gui/popups/spellpopup.h" #include "gui/windows/shortcutwindow.h" @@ -260,8 +261,12 @@ void SpellShortcutContainer::mouseReleased(MouseEvent &event) if (itemId >= 0) spell = spellManager->getSpell(itemId); - if (spell && popupManager) - popupManager->showSpellPopup(spell); + if (spell && popupMenu) + { + popupMenu->showSpellPopup(viewport->getMouseX(), + viewport->getMouseY(), + spell); + } } } -- cgit v1.2.3-70-g09d2