Skip to content

Commit

Permalink
fix the launchDialog that failed
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Babin committed Feb 13, 2024
1 parent b27c6f1 commit b156285
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions scripts/blurdeform/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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_()
Expand Down

0 comments on commit b156285

Please sign in to comment.