summaryrefslogtreecommitdiff
path: root/src/gui/windows/buydialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-24 00:27:10 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-24 00:27:10 +0300
commitcc965406e7903e890fc0c797c2684efc5c4624a6 (patch)
tree72efca27600ae734efa07d5194ff36db8767474a /src/gui/windows/buydialog.cpp
parent7467404f40f2d6cde3bf46fcda03631a0f1ad797 (diff)
downloadmanaplus-cc965406e7903e890fc0c797c2684efc5c4624a6.tar.gz
manaplus-cc965406e7903e890fc0c797c2684efc5c4624a6.tar.bz2
manaplus-cc965406e7903e890fc0c797c2684efc5c4624a6.tar.xz
manaplus-cc965406e7903e890fc0c797c2684efc5c4624a6.zip
Add missing windows into reset to default size list.
Diffstat (limited to 'src/gui/windows/buydialog.cpp')
-rw-r--r--src/gui/windows/buydialog.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/windows/buydialog.cpp b/src/gui/windows/buydialog.cpp
index 5d6774a51..02c9b5f2e 100644
--- a/src/gui/windows/buydialog.cpp
+++ b/src/gui/windows/buydialog.cpp
@@ -26,6 +26,7 @@
#include "shopitem.h"
#include "units.h"
+#include "gui/windows/setupwindow.h"
#include "gui/windows/tradewindow.h"
#include "gui/models/shopitems.h"
@@ -221,6 +222,9 @@ void BuyDialog::init()
setMinHeight(220);
setDefaultSize(260, 230, ImageRect::CENTER);
+ if (setupWindow)
+ setupWindow->registerWindowForReset(this);
+
mShopItems = new ShopItems;
mShopItemList = new ShopListBox(this, mShopItems, mShopItems);