Check for the existence of a screen before restoring size of wizard's dialog window

Closes #12944
(grafted from af40ac94803e01092fccbdc553cc772f251b9abd)

--HG--
branch : 6.0
This commit is contained in:
Nicolas Évrard committed 2024-04-13 17:42:02 +02:00
1 parent e68d2fb949
commit dba3816926
1 file changed
+2
+2
View File
@@ -396,6 +396,8 @@ class WizardDialog(Wizard, NoModal):
return True
def show(self):
if not self.screen:
return
view = self.screen.current_view
if view.view_type == 'form':
expand = False