summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-02-15 23:10:35 +0300
committerAndrei Karas <akaras@inbox.ru>2012-02-15 23:10:35 +0300
commit572c2e0048400388c71b962b74b9a443a0b076a0 (patch)
tree32aa3c5168362feb77230bf020c7a178d03329e1 /src
parentd54d06ca11fee4d9d8b791837b729550e51e51b6 (diff)
downloadmv-572c2e0048400388c71b962b74b9a443a0b076a0.tar.gz
mv-572c2e0048400388c71b962b74b9a443a0b076a0.tar.bz2
mv-572c2e0048400388c71b962b74b9a443a0b076a0.tar.xz
mv-572c2e0048400388c71b962b74b9a443a0b076a0.zip
Fix default servers dialog size.
Diffstat (limited to 'src')
-rw-r--r--src/gui/serverdialog.cpp10
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());