summaryrefslogtreecommitdiff
path: root/src/gui/buysell.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/buysell.cpp')
-rw-r--r--src/gui/buysell.cpp6
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()