diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-10-20 11:33:17 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-10-20 11:33:17 +0000 |
commit | ce2813cb1f4988669422c6af3e8c4442776e45c8 (patch) | |
tree | 098177c279f5376bd27d4db30f913f6e61471537 /src/gui/help.cpp | |
parent | 5acb9213cc2ee949a252a5c08a9a9a13542b94d5 (diff) | |
download | mana-ce2813cb1f4988669422c6af3e8c4442776e45c8.tar.gz mana-ce2813cb1f4988669422c6af3e8c4442776e45c8.tar.bz2 mana-ce2813cb1f4988669422c6af3e8c4442776e45c8.tar.xz mana-ce2813cb1f4988669422c6af3e8c4442776e45c8.zip |
Added garbage collection to the ScrollArea class. Fixed slider not being updated in the item amount box when the buttons are used.
Diffstat (limited to 'src/gui/help.cpp')
-rw-r--r-- | src/gui/help.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/gui/help.cpp b/src/gui/help.cpp index 45ed7ba4..eb30556a 100644 --- a/src/gui/help.cpp +++ b/src/gui/help.cpp @@ -41,7 +41,7 @@ HelpWindow::HelpWindow(): browserBox = new BrowserBox(); browserBox->setOpaque(false); scrollArea = new ScrollArea(browserBox); - okButton = new Button("Close"); + Button *okButton = new Button("Close"); scrollArea->setDimension(gcn::Rectangle( 5, 5, 445, 335 - okButton->getHeight())); @@ -60,11 +60,6 @@ HelpWindow::HelpWindow(): setLocationRelativeTo(getParent()); } -HelpWindow::~HelpWindow() -{ - delete browserBox; -} - void HelpWindow::action(const std::string& eventId) { if (eventId == "close") |