summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2022-01-24 12:39:20 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2022-01-24 12:39:20 +0200
commit8f22d63a3476f654e33c00a0e3087b50793fa940 (patch)
treee3e3fc22ed328a96568becb5a1342cbff64f5fe8
parent34c78f70abddefcae6e05502a0a964b0539e62f8 (diff)
DocumentWidget: Cancelling an input query
This has been broken for a while...
-rw-r--r--src/ui/documentwidget.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index fdb55232..93604225 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -4069,14 +4069,12 @@ static iBool handleCommand_DocumentWidget_(iDocumentWidget *d, const char *cmd)
4069 return iTrue; 4069 return iTrue;
4070 } 4070 }
4071 else if (equal_Command(cmd, "valueinput.cancelled") && 4071 else if (equal_Command(cmd, "valueinput.cancelled") &&
4072 equal_Rangecc(range_Command(cmd, "id"), "document.input.submit") && document_App() == d) { 4072 equal_Rangecc(range_Command(cmd, "id"), "!document.input.submit") && document_App() == d) {
4073 postCommand_Root(get_Root(), "navigate.back"); 4073 postCommand_Root(get_Root(), "navigate.back");
4074 return iTrue; 4074 return iTrue;
4075 } 4075 }
4076 else if (equalWidget_Command(cmd, w, "document.request.updated") && 4076 else if (equalWidget_Command(cmd, w, "document.request.updated") &&
4077 id_GmRequest(d->request) == argU32Label_Command(cmd, "reqid")) { 4077 id_GmRequest(d->request) == argU32Label_Command(cmd, "reqid")) {
4078// set_Block(&d->sourceContent, &lockResponse_GmRequest(d->request)->body);
4079// unlockResponse_GmRequest(d->request);
4080 if (document_App() == d) { 4078 if (document_App() == d) {
4081 updateFetchProgress_DocumentWidget_(d); 4079 updateFetchProgress_DocumentWidget_(d);
4082 } 4080 }