From b156285d042ba60bd1d5f00e7c4a799cec538bbb Mon Sep 17 00:00:00 2001 From: Guillaume Babin Date: Tue, 13 Feb 2024 07:46:18 -0800 Subject: [PATCH] fix the launchDialog that failed --- scripts/blurdeform/utils.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/scripts/blurdeform/utils.py b/scripts/blurdeform/utils.py index 1d9e67a..03889ff 100644 --- a/scripts/blurdeform/utils.py +++ b/scripts/blurdeform/utils.py @@ -150,13 +150,14 @@ def rootWindow(): def launchDialog(parent, dialogClass, instance, modal=True, instanced=True): - if instanced: - if instance is None: - dlg = dialogClass(parent=parent) - else: - dlg = instance - else: - dlg = dialogClass(parent=parent) + # if instanced: + # if instance is None: + # dlg = dialogClass(parent=parent) + # else:# fails + # dlg = instance + # else: + # dlg = dialogClass(parent=parent) + dlg = dialogClass(parent=parent) if modal: dlg.exec_()