diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-16 19:40:42 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-08-16 19:40:42 +0300 |
commit | 829cd57e021ea85cffdbd3f3a7b18da835e00b7c (patch) | |
tree | 4dbc5c2eeb9a297697c58f6e45079d968b6350cd /src/gui/popups | |
parent | 31f5f2a630e17fa1a3726e38d1475357feba96ca (diff) | |
download | mv-829cd57e021ea85cffdbd3f3a7b18da835e00b7c.tar.gz mv-829cd57e021ea85cffdbd3f3a7b18da835e00b7c.tar.bz2 mv-829cd57e021ea85cffdbd3f3a7b18da835e00b7c.tar.xz mv-829cd57e021ea85cffdbd3f3a7b18da835e00b7c.zip |
Create public variable for popupmenu.
Diffstat (limited to 'src/gui/popups')
-rw-r--r-- | src/gui/popups/popupmenu.cpp | 2 | ||||
-rw-r--r-- | src/gui/popups/popupmenu.h | 2 |
2 files changed, 4 insertions, 0 deletions
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 |