summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game.cpp10
-rw-r--r--src/gui/popups/createpartypopup.h1
-rw-r--r--src/gui/widgets/popuplist.cpp1
3 files changed, 9 insertions, 3 deletions
diff --git a/src/game.cpp b/src/game.cpp
index d30eded3a..7026051da 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -233,14 +233,18 @@ static void createGuiWindows()
new EmoteShortcutContainer(nullptr),
"emotes.xml",
130, 480);
+ emoteShortcutWindow->postInit();
outfitWindow = new OutfitWindow();
outfitWindow->postInit();
dropShortcutWindow = new ShortcutWindow("DropShortcut",
new VirtShortcutContainer(nullptr, dropShortcut),
"drops.xml");
-
- spellShortcutWindow = new ShortcutWindow("SpellShortcut", "spells.xml",
- 265, 328);
+ dropShortcutWindow->postInit();
+ spellShortcutWindow = new ShortcutWindow(
+ "SpellShortcut",
+ "spells.xml",
+ 265, 328);
+ spellShortcutWindow->postInit();
for (unsigned f = 0; f < SPELL_SHORTCUT_TABS; f ++)
{
spellShortcutWindow->addTab(toString(f + 1),
diff --git a/src/gui/popups/createpartypopup.h b/src/gui/popups/createpartypopup.h
index bd5899726..b7f596e36 100644
--- a/src/gui/popups/createpartypopup.h
+++ b/src/gui/popups/createpartypopup.h
@@ -55,6 +55,7 @@ class CreatePartyPopup final : public Popup,
void postInit() override final
{
+ Popup::postInit();
add(mBrowserBox);
setContentSize(mBrowserBox->getWidth() + 8,
mBrowserBox->getHeight() + 8);
diff --git a/src/gui/widgets/popuplist.cpp b/src/gui/widgets/popuplist.cpp
index c459fe351..d8c1d79dc 100644
--- a/src/gui/widgets/popuplist.cpp
+++ b/src/gui/widgets/popuplist.cpp
@@ -55,6 +55,7 @@ PopupList::PopupList(DropDown *const widget,
void PopupList::postInit()
{
+ Popup::postInit();
add(mScrollArea);
if (gui)