From 8ac461dbb8804f6e8b3638d8430b17fc7cf28075 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Wed, 3 Feb 2021 14:48:42 +0200 Subject: XDG: Check XDG_CONFIG_HOME and the user's download directory Also added a build option to disable changing the user download directory within Lagrange, since that's set via XDG config. --- src/ui/inputwidget.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ui/inputwidget.c') diff --git a/src/ui/inputwidget.c b/src/ui/inputwidget.c index 3f799e3c..1674040b 100644 --- a/src/ui/inputwidget.c +++ b/src/ui/inputwidget.c @@ -223,6 +223,7 @@ static void updateBuffered_InputWidget_(iInputWidget *d) { } void setText_InputWidget(iInputWidget *d, const iString *text) { + if (!d) return; if (d->inFlags & isUrl_InputWidgetFlag) { /* If user wants URLs encoded, also Punycode the domain. */ if (!prefs_App()->decodeUserVisibleURLs) { -- cgit v1.2.3