stk: Handle icon self explanatory in get input
authorDenis Kenzior <denkenz@gmail.com>
Sat, 24 Nov 2012 07:13:22 +0000 (01:13 -0600)
committerDenis Kenzior <denkenz@gmail.com>
Wed, 28 Nov 2012 16:31:14 +0000 (10:31 -0600)
src/stk.c

index 51e88a6..89f5df1 100644 (file)
--- a/src/stk.c
+++ b/src/stk.c
@@ -1680,6 +1680,10 @@ static gboolean handle_command_get_input(const struct stk_command *cmd,
                return TRUE;
        }
 
+       if (gi->icon_id.id != 0 && gi->icon_id.qualifier ==
+                       STK_ICON_QUALIFIER_TYPE_SELF_EXPLANATORY)
+               text[0]='\0';
+
        if (alphabet)
                err = stk_agent_request_input(stk->current_agent, text,
                                                &gi->icon_id, gi->default_text,