diff options
Diffstat (limited to 'src/gui/popups')
-rw-r--r-- | src/gui/popups/popupmenu.cpp | 4 | ||||
-rw-r--r-- | src/gui/popups/popupmenu.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index 3655451d3..cba03800a 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -120,6 +120,10 @@ PopupMenu::PopupMenu() : mPlayerListener.setType(static_cast<int>(Being::UNKNOWN)); mScrollArea = new ScrollArea(mBrowserBox, false); mScrollArea->setVerticalScrollPolicy(ScrollArea::SHOW_AUTO); +} + +void PopupMenu::postInit() +{ add(mScrollArea); } diff --git a/src/gui/popups/popupmenu.h b/src/gui/popups/popupmenu.h index f5ff7fb84..4bb7e2e04 100644 --- a/src/gui/popups/popupmenu.h +++ b/src/gui/popups/popupmenu.h @@ -104,6 +104,8 @@ class PopupMenu final : public Popup, public LinkHandler A_DELETE_COPY(PopupMenu) + void postInit(); + /** * Shows the being related popup menu at the specified mouse coords. */ |