summaryrefslogtreecommitdiff
path: root/src/gui/ok_dialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/ok_dialog.cpp')
-rw-r--r--src/gui/ok_dialog.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/ok_dialog.cpp b/src/gui/ok_dialog.cpp
index b997cdb2..887c09f7 100644
--- a/src/gui/ok_dialog.cpp
+++ b/src/gui/ok_dialog.cpp
@@ -22,9 +22,10 @@
*/
#include "ok_dialog.h"
+#include "button.h"
-OkDialog::OkDialog(gcn::Container *parent, std::string msg):
- Window(parent, "Message")
+OkDialog::OkDialog(const std::string& title, const std::string& msg):
+ Window(title, true)
{
userLabel = new gcn::Label(msg);
okButton = new Button("OK");
@@ -52,5 +53,7 @@ OkDialog::~OkDialog()
void OkDialog::action(const std::string& eventId)
{
if (eventId == "ok") {
+ //getParent()->remove(this);
+ windowContainer->scheduleDelete(this);
}
}