summaryrefslogtreecommitdiff
path: root/src/gui/windows/editdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/editdialog.cpp')
-rw-r--r--src/gui/windows/editdialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/windows/editdialog.cpp b/src/gui/windows/editdialog.cpp
index 502b71ecb..5c002212f 100644
--- a/src/gui/windows/editdialog.cpp
+++ b/src/gui/windows/editdialog.cpp
@@ -35,9 +35,9 @@ EditDialog::EditDialog(const std::string &restrict title,
Window(title, modal, parent, "edit.xml"),
gcn::ActionListener(),
mEventOk(eventOk),
- mTextField(new TextField(this)),
- mDefaultWidth(width)
+ mTextField(new TextField(this))
{
+ mDefaultWidth = width;
mTextField->setText(msg);
}