summaryrefslogtreecommitdiff
path: root/textscreen
diff options
context:
space:
mode:
authorSimon Howard2011-10-23 19:28:10 +0000
committerSimon Howard2011-10-23 19:28:10 +0000
commitcc7a430448e4fcee6a0ac6ad3acfd6d0aa08767a (patch)
tree50cb50da2a8ea58d869c9f6ae648090346bf6b1d /textscreen
parentdd52766c7be893a6a5db31bc396ccef8d758af45 (diff)
downloadchocolate-doom-cc7a430448e4fcee6a0ac6ad3acfd6d0aa08767a.tar.gz
chocolate-doom-cc7a430448e4fcee6a0ac6ad3acfd6d0aa08767a.tar.bz2
chocolate-doom-cc7a430448e4fcee6a0ac6ad3acfd6d0aa08767a.zip
Don't save value when destructor is called.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2461
Diffstat (limited to 'textscreen')
-rw-r--r--textscreen/txt_inputbox.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/textscreen/txt_inputbox.c b/textscreen/txt_inputbox.c
index 7056c497..2ba08ac6 100644
--- a/textscreen/txt_inputbox.c
+++ b/textscreen/txt_inputbox.c
@@ -161,14 +161,6 @@ static void TXT_InputBoxDestructor(TXT_UNCAST_ARG(inputbox))
{
TXT_CAST_ARG(txt_inputbox_t, inputbox);
- // If we're still editing when the widget is destroyed, save the
- // value first.
-
- if (inputbox->editing)
- {
- FinishEditing(inputbox);
- }
-
free(inputbox->buffer);
}