From cc965406e7903e890fc0c797c2684efc5c4624a6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 24 Jul 2014 00:27:10 +0300 Subject: Add missing windows into reset to default size list. --- src/gui/windows/buydialog.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gui/windows/buydialog.cpp') 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); -- cgit v1.2.3-70-g09d2