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

Closes #12944
(grafted from af40ac94803e01092fccbdc553cc772f251b9abd)

--HG--
branch : 7.0
This commit is contained in:
Nicolas Évrard committed 2024-04-13 17:42:02 +02:00
1 parent 4c1cb2a9d3
commit b0ae3e4fa5
1 file changed
+2
+2
View File
@@ -402,6 +402,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