summaryrefslogtreecommitdiff
path: root/src/gui/windows/shopwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-21 22:00:30 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-21 22:00:30 +0300
commit76dc498cd50fb5bc83b3d0a165df17781af35979 (patch)
tree6513853d484fa36e282afc2865e8e98f69100aeb /src/gui/windows/shopwindow.cpp
parentba307a72cb8bcfe068e362fab4a5e572d9ac65e9 (diff)
downloadmanaplus-76dc498cd50fb5bc83b3d0a165df17781af35979.tar.gz
manaplus-76dc498cd50fb5bc83b3d0a165df17781af35979.tar.bz2
manaplus-76dc498cd50fb5bc83b3d0a165df17781af35979.tar.xz
manaplus-76dc498cd50fb5bc83b3d0a165df17781af35979.zip
Call postInit after each window creation.
Diffstat (limited to 'src/gui/windows/shopwindow.cpp')
-rw-r--r--src/gui/windows/shopwindow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/windows/shopwindow.cpp b/src/gui/windows/shopwindow.cpp
index d9e182757..b173da568 100644
--- a/src/gui/windows/shopwindow.cpp
+++ b/src/gui/windows/shopwindow.cpp
@@ -370,7 +370,7 @@ void ShopWindow::action(const ActionEvent &event)
{
EditDialog *const dialog = new EditDialog(
_("Please enter new shop name"), mSellShopName, "OK");
- dialog->postInit();
+ dialog->postInit();
shopRenameListener.setDialog(dialog);
dialog->addActionListener(&shopRenameListener);
}
@@ -812,6 +812,7 @@ void ShopWindow::showList(const std::string &nick, std::string data)
{
data = data.substr(2);
buyDialog = new BuyDialog(nick);
+ buyDialog->postInit();
}
else if (data.find("S1") == 0)
{