Dont check for var attribute on form fields of type fixed

This commit is contained in:
James Booth
2014-09-30 20:44:00 +01:00
parent 780a3f1cc7
commit fbeb107cbe
3 changed files with 58 additions and 51 deletions

View File

@@ -2041,7 +2041,7 @@ _ui_show_form(ProfWin *window, const char * const room, DataForm *form)
while (curr_field != NULL) {
FormField *field = curr_field->data;
if (g_strcmp0(field->type, "hidden") != 0) {
if (g_strcmp0(field->type, "hidden") != 0 && field->var) {
char *tag = g_hash_table_lookup(form->var_to_tag, field->var);
_ui_handle_form_field(window, tag, field);
}