summaryrefslogtreecommitdiff
path: root/src/gui/windows/charcreatedialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-14 13:01:57 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-14 13:01:57 +0300
commitceafa0afeeb8f47f91896cda18c2ae4d084a6fa5 (patch)
treef6148ed2853afd41b844c77916bb35e650c78753 /src/gui/windows/charcreatedialog.cpp
parentc5a0ab5deef736b2a7493546bd96d0fec2a2c4ac (diff)
downloadplus-ceafa0afeeb8f47f91896cda18c2ae4d084a6fa5.tar.gz
plus-ceafa0afeeb8f47f91896cda18c2ae4d084a6fa5.tar.bz2
plus-ceafa0afeeb8f47f91896cda18c2ae4d084a6fa5.tar.xz
plus-ceafa0afeeb8f47f91896cda18c2ae4d084a6fa5.zip
Use smaller char create window size if stats not present.
Diffstat (limited to 'src/gui/windows/charcreatedialog.cpp')
-rw-r--r--src/gui/windows/charcreatedialog.cpp8
1 files changed, 7 insertions, 1 deletions
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<unsigned>(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);
}