From 829cd57e021ea85cffdbd3f3a7b18da835e00b7c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 16 Aug 2014 19:40:42 +0300 Subject: Create public variable for popupmenu. --- src/gui/popups/popupmenu.cpp | 2 ++ src/gui/popups/popupmenu.h | 2 ++ 2 files changed, 4 insertions(+) (limited to 'src/gui/popups') diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index aac6c1b21..0add7e10d 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -96,6 +96,8 @@ extern int serverVersion; std::string tradePartnerName; +PopupMenu *popupMenu = nullptr; + PopupMenu::PopupMenu() : Popup("PopupMenu", "popupmenu.xml"), mBrowserBox(new BrowserBox(this, BrowserBox::AUTO_SIZE, true, diff --git a/src/gui/popups/popupmenu.h b/src/gui/popups/popupmenu.h index 69ca3c17b..f9b8cc639 100644 --- a/src/gui/popups/popupmenu.h +++ b/src/gui/popups/popupmenu.h @@ -202,4 +202,6 @@ class PopupMenu final : public Popup, public LinkHandler void showPopup(int x, int y); }; +extern PopupMenu *popupMenu; + #endif // GUI_POPUPS_POPUPMENU_H -- cgit v1.2.3-70-g09d2