summaryrefslogtreecommitdiff
path: root/src/gui/windows/shopwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-27 00:43:20 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-27 00:43:20 +0300
commit30ba8a737da8b1811397786106085f2c13167803 (patch)
tree09e52b2fcb8ac35d3de76781de7508dc6a9c9278 /src/gui/windows/shopwindow.cpp
parent03f4d4beaaa2ea4ac99aa746460283d4ca644a3f (diff)
downloadplus-30ba8a737da8b1811397786106085f2c13167803.tar.gz
plus-30ba8a737da8b1811397786106085f2c13167803.tar.bz2
plus-30ba8a737da8b1811397786106085f2c13167803.tar.xz
plus-30ba8a737da8b1811397786106085f2c13167803.zip
Remove default parameters from window.
Diffstat (limited to 'src/gui/windows/shopwindow.cpp')
-rw-r--r--src/gui/windows/shopwindow.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/windows/shopwindow.cpp b/src/gui/windows/shopwindow.cpp
index 57406fb4b..270727f4b 100644
--- a/src/gui/windows/shopwindow.cpp
+++ b/src/gui/windows/shopwindow.cpp
@@ -118,7 +118,7 @@ ShopWindow::ShopWindow() :
this, mSellShopItems, mSellShopItems, ShopListBoxType::SellShop)),
mCurrentShopItemList(nullptr),
mScrollArea(new ScrollArea(this, mBuyShopItemList,
- fromBool(getOptionBool("showbuybackground"), Opaque),
+ fromBool(getOptionBool("showbuybackground", false), Opaque),
"shop_buy_background.xml")),
// TRANSLATORS: shop window label
mAddButton(new Button(this, _("Add"), "add", this)),
@@ -152,9 +152,9 @@ ShopWindow::ShopWindow() :
setMinWidth(300);
setMinHeight(220);
if (mainGraphics->mWidth > 600)
- setDefaultSize(500, 300, ImagePosition::CENTER);
+ setDefaultSize(500, 300, ImagePosition::CENTER, 0, 0);
else
- setDefaultSize(380, 300, ImagePosition::CENTER);
+ setDefaultSize(380, 300, ImagePosition::CENTER, 0, 0);
if (setupWindow != nullptr)
setupWindow->registerWindowForReset(this);