summaryrefslogtreecommitdiff
path: root/src/gui/textdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/textdialog.cpp')
-rw-r--r--src/gui/textdialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/textdialog.cpp b/src/gui/textdialog.cpp
index f88a6afa..08dbef00 100644
--- a/src/gui/textdialog.cpp
+++ b/src/gui/textdialog.cpp
@@ -40,7 +40,7 @@ TextDialog::TextDialog(const std::string &title, const std::string &msg,
gcn::Button *cancelButton = new Button(_("Cancel"), "CANCEL", this);
// In TextField the escape key will either cause autoComplete or lose focus
- mTextField = new TextField("", ! autoCompleteEnabled);
+ mTextField = new TextField(std::string(), ! autoCompleteEnabled);
if (autoCompleteEnabled)
mTextField->setAutoComplete(actorSpriteManager->getPlayerNameLister());
@@ -55,7 +55,7 @@ TextDialog::TextDialog(const std::string &title, const std::string &msg,
if (getParent())
{
- setLocationRelativeTo(getParent());
+ center();
getParent()->moveToTop(this);
}
setVisible(true);