summaryrefslogtreecommitdiff
path: root/src/gui/ok_dialog.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2005-10-18 21:40:25 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2005-10-18 21:40:25 +0000
commitaa6a0b7b75bc05e51805b6f377ca6278f1f58436 (patch)
tree718c211089348a3b67641d16821a98ae88de0285 /src/gui/ok_dialog.cpp
parentd0333c99e0ff4c5510875bf8993056875d6c93af (diff)
downloadmana-aa6a0b7b75bc05e51805b6f377ca6278f1f58436.tar.gz
mana-aa6a0b7b75bc05e51805b6f377ca6278f1f58436.tar.bz2
mana-aa6a0b7b75bc05e51805b6f377ca6278f1f58436.tar.xz
mana-aa6a0b7b75bc05e51805b6f377ca6278f1f58436.zip
Added automatic widget cleanup to the window class.
Diffstat (limited to 'src/gui/ok_dialog.cpp')
-rw-r--r--src/gui/ok_dialog.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/gui/ok_dialog.cpp b/src/gui/ok_dialog.cpp
index 0089f0ae..8984c213 100644
--- a/src/gui/ok_dialog.cpp
+++ b/src/gui/ok_dialog.cpp
@@ -42,6 +42,10 @@ OkDialog::OkDialog(Window *parent, const std::string &title,
init(msg, listener);
}
+OkDialog::~OkDialog()
+{
+}
+
void OkDialog::init(const std::string &msg, gcn::ActionListener *listener)
{
userLabel = new gcn::Label(msg);
@@ -72,12 +76,6 @@ void OkDialog::init(const std::string &msg, gcn::ActionListener *listener)
okButton->requestFocus();
}
-OkDialog::~OkDialog()
-{
- delete userLabel;
- delete okButton;
-}
-
void OkDialog::action(const std::string &eventId)
{
if (eventId == "ok") {