Skip to content

Commit

Permalink
fix the launchDialog that failed (#4)
Browse files Browse the repository at this point in the history
Co-authored-by: Guillaume Babin <[email protected]>
  • Loading branch information
guibab and Guillaume Babin authored Feb 13, 2024
1 parent b27c6f1 commit 5c77745
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 5c77745

Please sign in to comment.