commit cc7a430448e4fcee6a0ac6ad3acfd6d0aa08767a
Author: Simon Howard <fraggle@gmail.com>
AuthorDate: Sun Oct 23 19:28:10 2011 +0000
Commit: Simon Howard <fraggle@gmail.com>
CommitDate: Sun Oct 23 19:28:10 2011 +0000
Don't save value when destructor is called.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2461
---
textscreen/txt_inputbox.c | 8 --------
1 file changed, 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);
}