diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/charcreatedialog.cpp | 2 | ||||
-rw-r--r-- | src/gui/okdialog.cpp | 4 | ||||
-rw-r--r-- | src/gui/okdialog.h | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/charcreatedialog.cpp b/src/gui/charcreatedialog.cpp index cd7949ed..3d240271 100644 --- a/src/gui/charcreatedialog.cpp +++ b/src/gui/charcreatedialog.cpp @@ -175,7 +175,7 @@ void CharCreateDialog::action(const gcn::ActionEvent &event) { new OkDialog(_("Error"), _("Your name needs to be at least 4 characters."), - this); + true, this); } } else if (event.getId() == "cancel") diff --git a/src/gui/okdialog.cpp b/src/gui/okdialog.cpp index 3693f3e9..71b96374 100644 --- a/src/gui/okdialog.cpp +++ b/src/gui/okdialog.cpp @@ -31,8 +31,8 @@ #include <guichan/font.hpp> OkDialog::OkDialog(const std::string &title, const std::string &msg, - Window *parent): - Window(title, true, parent) + bool modal, Window *parent): + Window(title, modal, parent) { mTextBox = new TextBox; mTextBox->setEditable(false); diff --git a/src/gui/okdialog.h b/src/gui/okdialog.h index 1e0557b7..3c842309 100644 --- a/src/gui/okdialog.h +++ b/src/gui/okdialog.h @@ -42,7 +42,7 @@ class OkDialog : public Window, public gcn::ActionListener * @see Window::Window */ OkDialog(const std::string &title, const std::string &msg, - Window *parent = NULL); + bool modal = true, Window *parent = NULL); /** * Called when receiving actions from the widgets. |