summaryrefslogtreecommitdiff
path: root/src/gui/buysell.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-03-15 13:56:40 -0600
committerIra Rice <irarice@gmail.com>2009-03-15 13:56:40 -0600
commita9b1eccdd2c719f86475c6ce01d4b8eea7dede6c (patch)
tree75a8b557996feb095135a5cfbf74bdda69f77286 /src/gui/buysell.cpp
parent3123c8ce5f882f0bfb99a2d2efa45d760237ebcc (diff)
downloadmana-client-a9b1eccdd2c719f86475c6ce01d4b8eea7dede6c.tar.gz
mana-client-a9b1eccdd2c719f86475c6ce01d4b8eea7dede6c.tar.bz2
mana-client-a9b1eccdd2c719f86475c6ce01d4b8eea7dede6c.tar.xz
mana-client-a9b1eccdd2c719f86475c6ce01d4b8eea7dede6c.zip
Overrode the reset window function in the chat window to also reset the
position of the recorder, as well as fixed resetting the help window, and exposing the buy/sell window to being resettable, as well as remembering its previous position. All windows should now be covered by the reset button on the setup pane. Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/buysell.cpp')
-rw-r--r--src/gui/buysell.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/buysell.cpp b/src/gui/buysell.cpp
index 2022b040..4ac06220 100644
--- a/src/gui/buysell.cpp
+++ b/src/gui/buysell.cpp
@@ -49,9 +49,10 @@ BuySellDialog::BuySellDialog(Network *network):
}
buyButton->requestFocus();
- setContentSize(x, 2 * y + buyButton->getHeight());
+ setDefaultSize(x + getPadding(), (2 * y + buyButton->getHeight() +
+ getTitleBarHeight()), ImageRect::CENTER);
- setLocationRelativeTo(ImageRect::CENTER);
+ loadWindowState();
requestFocus();
}