summaryrefslogtreecommitdiff
path: root/src/gui/popups
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-16 19:40:42 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-16 19:40:42 +0300
commit829cd57e021ea85cffdbd3f3a7b18da835e00b7c (patch)
tree4dbc5c2eeb9a297697c58f6e45079d968b6350cd /src/gui/popups
parent31f5f2a630e17fa1a3726e38d1475357feba96ca (diff)
downloadmanaplus-829cd57e021ea85cffdbd3f3a7b18da835e00b7c.tar.gz
manaplus-829cd57e021ea85cffdbd3f3a7b18da835e00b7c.tar.bz2
manaplus-829cd57e021ea85cffdbd3f3a7b18da835e00b7c.tar.xz
manaplus-829cd57e021ea85cffdbd3f3a7b18da835e00b7c.zip
Create public variable for popupmenu.
Diffstat (limited to 'src/gui/popups')
-rw-r--r--src/gui/popups/popupmenu.cpp2
-rw-r--r--src/gui/popups/popupmenu.h2
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