summaryrefslogtreecommitdiff
path: root/src/gui/textdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-20 01:45:57 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-20 13:55:43 +0300
commitf5f77f16d8c0dc23ffaf4c6a8590e4c026bfcfc8 (patch)
tree8ab383dce47ed689137addbac041ef1f9e300faf /src/gui/textdialog.cpp
parent5d02ab43ff6d3e328a3b02479c033609023edec2 (diff)
downloadManaVerse-f5f77f16d8c0dc23ffaf4c6a8590e4c026bfcfc8.tar.gz
ManaVerse-f5f77f16d8c0dc23ffaf4c6a8590e4c026bfcfc8.tar.bz2
ManaVerse-f5f77f16d8c0dc23ffaf4c6a8590e4c026bfcfc8.tar.xz
ManaVerse-f5f77f16d8c0dc23ffaf4c6a8590e4c026bfcfc8.zip
Add palette inheritance to textfield class.
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 e4784d602..88160e9aa 100644
--- a/src/gui/textdialog.cpp
+++ b/src/gui/textdialog.cpp
@@ -53,12 +53,12 @@ TextDialog::TextDialog(const std::string &title, const std::string &msg,
place(0, 0, textLabel, 4);
if (isPassword)
{
- mPasswordField = new PasswordField;
+ mPasswordField = new PasswordField(this);
place(0, 1, mPasswordField, 4);
}
else
{
- mTextField = new TextField;
+ mTextField = new TextField(this);
place(0, 1, mTextField, 4);
}
place(2, 2, mOkButton);