From 037216a5a457e62a01b607dcbc78b31acf19ef5c Mon Sep 17 00:00:00 2001 From: Oscar Alvarez Date: Fri, 29 Jan 2021 13:01:31 -0500 Subject: [PATCH] Minor fix --- app/commons/forms.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/commons/forms.py b/app/commons/forms.py index 5efe13a..0ea8725 100644 --- a/app/commons/forms.py +++ b/app/commons/forms.py @@ -472,4 +472,5 @@ class GridForm(QGridLayout): return self.store def set_focus(self): - self.focus_widget.setFocus() + if hasattr(self, 'focus_widget'): + self.focus_widget.setFocus()