diff options
author | Paul Fariello <paul@fariello.eu> | 2018-09-10 12:28:28 +0200 |
---|---|---|
committer | Paul Fariello <paul@fariello.eu> | 2018-09-10 12:28:28 +0200 |
commit | 6de60e7efc75d3eaa8e8d6b3676d3ee115ba0bd8 (patch) | |
tree | c46475ea949a82e7e55e9b778386dd481bfcde68 /src/command/cmd_funcs.c | |
parent | b7556b4e414c5fd1652b1401e38298e7ba71313d (diff) | |
download | profani-tty-6de60e7efc75d3eaa8e8d6b3676d3ee115ba0bd8.tar.gz |
Add support for ad-hoc response with forms
Diffstat (limited to 'src/command/cmd_funcs.c')
-rw-r--r-- | src/command/cmd_funcs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c index f8c9d9e2..42f85182 100644 --- a/src/command/cmd_funcs.c +++ b/src/command/cmd_funcs.c @@ -3899,11 +3899,11 @@ cmd_form(ProfWin *window, const char *const command, gchar **args) return TRUE; } - if (g_strcmp0(args[0], "submit") == 0) { + if (g_strcmp0(args[0], "submit") == 0 && confwin->submit != NULL) { confwin->submit(confwin); } - if (g_strcmp0(args[0], "cancel") == 0) { + if (g_strcmp0(args[0], "cancel") == 0 && confwin->cancel != NULL) { confwin->cancel(confwin); } |