From ceafa0afeeb8f47f91896cda18c2ae4d084a6fa5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 14 Sep 2014 13:01:57 +0300 Subject: Use smaller char create window size if stats not present. --- src/gui/windows/charcreatedialog.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/gui/windows') diff --git a/src/gui/windows/charcreatedialog.cpp b/src/gui/windows/charcreatedialog.cpp index 890abfe22..49eacd93e 100644 --- a/src/gui/windows/charcreatedialog.cpp +++ b/src/gui/windows/charcreatedialog.cpp @@ -527,7 +527,7 @@ void CharCreateDialog::setAttributes(const StringVect &labels, mAttributeValue.resize(labels.size()); const int w = 480; - const int h = 350; + int h = 350; const int y = 118 + 29; for (unsigned i = 0, sz = static_cast(labels.size()); @@ -551,6 +551,12 @@ void CharCreateDialog::setAttributes(const StringVect &labels, } updateSliders(); + if (!available) + { + mAttributesLeft->setVisible(false); + h = y; + setContentSize(w, h); + } setButtonsPosition(w, h); } -- cgit v1.2.3-60-g2f50