summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-19 11:28:03 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-19 15:12:22 +0300
commit2df5b93608c98297e75b2bec8cd494e6bba5a23a (patch)
treed72bef1453ee63dd74dbc856cacac9d4dc85e909 /src/gui/widgets
parente964cbb2e00121e9d4fea4a76a09e9af960ca56e (diff)
downloadmv-2df5b93608c98297e75b2bec8cd494e6bba5a23a.tar.gz
mv-2df5b93608c98297e75b2bec8cd494e6bba5a23a.tar.bz2
mv-2df5b93608c98297e75b2bec8cd494e6bba5a23a.tar.xz
mv-2df5b93608c98297e75b2bec8cd494e6bba5a23a.zip
move virtual member calls from spellpopup constuctor into postInit.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/itemshortcutcontainer.cpp1
-rw-r--r--src/gui/widgets/spellshortcutcontainer.cpp2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/widgets/itemshortcutcontainer.cpp b/src/gui/widgets/itemshortcutcontainer.cpp
index d85a1e73e..266c96241 100644
--- a/src/gui/widgets/itemshortcutcontainer.cpp
+++ b/src/gui/widgets/itemshortcutcontainer.cpp
@@ -61,6 +61,7 @@ ItemShortcutContainer::ItemShortcutContainer(const unsigned number) :
mUnEquipedColor2(getThemeColor(Theme::ITEM_NOT_EQUIPPED_OUTLINE))
{
mItemPopup->postInit();
+ mSpellPopup->postInit();
addMouseListener(this);
addWidgetListener(this);
diff --git a/src/gui/widgets/spellshortcutcontainer.cpp b/src/gui/widgets/spellshortcutcontainer.cpp
index 6e1db9cbd..3a28bfabf 100644
--- a/src/gui/widgets/spellshortcutcontainer.cpp
+++ b/src/gui/widgets/spellshortcutcontainer.cpp
@@ -46,6 +46,8 @@ SpellShortcutContainer::SpellShortcutContainer(const unsigned number) :
mNumber(number),
mSpellClicked(false)
{
+ mSpellPopup->postInit();
+
addMouseListener(this);
addWidgetListener(this);