about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-10-01 13:01:20 +0100
committerJames Booth <boothj5@gmail.com>2014-10-01 13:01:20 +0100
commitb189f8f52ea1053c8fe3da60d3d7038a075d8c69 (patch)
treead503bdccc6fdf1ad12b9575bc348eb9d7d0cc06 /src
parentc90f4a37a312ecf7c60e3ed9757735d7bad39798 (diff)
downloadprofani-tty-b189f8f52ea1053c8fe3da60d3d7038a075d8c69.tar.gz
Show fixed form fields
Diffstat (limited to 'src')
-rw-r--r--src/ui/core.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ui/core.c b/src/ui/core.c
index 3995d60d..892fa1c0 100644
--- a/src/ui/core.c
+++ b/src/ui/core.c
@@ -2150,7 +2150,12 @@ _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 && field->var) {
+        if ((g_strcmp0(field->type, "fixed") == 0) && field->values) {
+            if (field->values) {
+                char *value = field->values->data;
+                win_save_print(window, '-', NULL, 0, 0, "", value);
+            }
+        } else 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);
         }