diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-02-15 23:10:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-02-15 23:10:35 +0300 |
commit | 572c2e0048400388c71b962b74b9a443a0b076a0 (patch) | |
tree | 32aa3c5168362feb77230bf020c7a178d03329e1 | |
parent | d54d06ca11fee4d9d8b791837b729550e51e51b6 (diff) | |
download | manaplus-572c2e0048400388c71b962b74b9a443a0b076a0.tar.gz manaplus-572c2e0048400388c71b962b74b9a443a0b076a0.tar.bz2 manaplus-572c2e0048400388c71b962b74b9a443a0b076a0.tar.xz manaplus-572c2e0048400388c71b962b74b9a443a0b076a0.zip |
Fix default servers dialog size.
-rw-r--r-- | src/gui/serverdialog.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/gui/serverdialog.cpp b/src/gui/serverdialog.cpp index c50c2b802..ce61f6572 100644 --- a/src/gui/serverdialog.cpp +++ b/src/gui/serverdialog.cpp @@ -283,14 +283,10 @@ ServerDialog::ServerDialog(ServerInfo *serverInfo, const std::string &dir): // Do this manually instead of calling reflowLayout so we can enforce a // minimum width. - int width = 0, height = 0; - getLayout().reflow(width, height); - if (width < 400) - { - width = 400; - getLayout().reflow(width, height); - } + int width = 500; + int height = 350; + getLayout().reflow(width, height); setContentSize(width, height); setMinWidth(getWidth()); |