diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-03-19 16:27:51 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-03-19 16:27:51 -0600 |
commit | 61f4e3b9838ac7a0e06cd066ea07224670f1b851 (patch) | |
tree | bacea13fd0e6e4bd0ebacdb74eea6a9db114b4b4 /src/gui/buysell.cpp | |
parent | dbf402a235d142b44c1936c305f6b3f4c02890bc (diff) | |
download | mana-client-61f4e3b9838ac7a0e06cd066ea07224670f1b851.tar.gz mana-client-61f4e3b9838ac7a0e06cd066ea07224670f1b851.tar.bz2 mana-client-61f4e3b9838ac7a0e06cd066ea07224670f1b851.tar.xz mana-client-61f4e3b9838ac7a0e06cd066ea07224670f1b851.zip |
Make sure positionable dialogs start out centered
Diffstat (limited to 'src/gui/buysell.cpp')
-rw-r--r-- | src/gui/buysell.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/buysell.cpp b/src/gui/buysell.cpp index 75c49b1f..e6dc7c1f 100644 --- a/src/gui/buysell.cpp +++ b/src/gui/buysell.cpp @@ -49,9 +49,11 @@ BuySellDialog::BuySellDialog(Network *network): } buyButton->requestFocus(); - loadWindowState(); - setContentSize(x, 2 * y + buyButton->getHeight()); + + center(); + setDefaultSize(); + loadWindowState(); } void BuySellDialog::logic() |