diff options
Diffstat (limited to 'src/ui/translation.c')
-rw-r--r-- | src/ui/translation.c | 6 |
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; |