summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-10-01 21:15:17 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-10-01 21:15:17 +0300
commit94cce13ab76ca040c7f103e61051ee977ef9086c (patch)
tree0dc0b747e170ae7d1149a2029c8c42dc05c5aae5 /src
parent7194417dbc5115853db5acd0ce1279fc5b04878b (diff)
Fixed widget hiding in translation dialog
"From"/"To" fields were not being hidden when translation request was submitted.
Diffstat (limited to 'src')
-rw-r--r--src/ui/translation.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ui/translation.c b/src/ui/translation.c
index b86e6e52..b3c2833a 100644
--- a/src/ui/translation.c
+++ b/src/ui/translation.c
@@ -432,8 +432,10 @@ iBool handleCommand_Translation(iTranslation *d, const char *cmd) {
432 iWidget *w = as_Widget(d->doc); 432 iWidget *w = as_Widget(d->doc);
433 if (equalWidget_Command(cmd, w, "translation.submit")) { 433 if (equalWidget_Command(cmd, w, "translation.submit")) {
434 if (status_TlsRequest(d->request) == initialized_TlsRequestStatus) { 434 if (status_TlsRequest(d->request) == initialized_TlsRequestStatus) {
435 iWidget *langs = findChild_Widget(d->dlg, "xlt.langs"); 435 iWidget *langs = findChild_Widget(d->dlg, "xlt.langs");
436// setFlags_Widget(langs, hidden_WidgetFlag, iTrue); 436 if (langs) {
437 setFlags_Widget(langs, hidden_WidgetFlag, iTrue);
438 }
437 setFlags_Widget(findChild_Widget(d->dlg, "xlt.from"), hidden_WidgetFlag, iTrue); 439 setFlags_Widget(findChild_Widget(d->dlg, "xlt.from"), hidden_WidgetFlag, iTrue);
438 setFlags_Widget(findChild_Widget(d->dlg, "xlt.to"), hidden_WidgetFlag, iTrue); 440 setFlags_Widget(findChild_Widget(d->dlg, "xlt.to"), hidden_WidgetFlag, iTrue);
439 if (!langs) langs = d->dlg; 441 if (!langs) langs = d->dlg;