src/eric7/Project/ProjectSourcesBrowser.py

branch
eric7-maintenance
changeset 11019
27cd57e98461
parent 10814
ba20efe10336
parent 11006
a671918232f3
child 11118
967a88a16a21
--- a/src/eric7/Project/ProjectSourcesBrowser.py	Thu Oct 03 17:06:51 2024 +0200
+++ b/src/eric7/Project/ProjectSourcesBrowser.py	Thu Oct 31 10:54:33 2024 +0100
@@ -1138,7 +1138,7 @@
         dn = self.currentDirectory(relative=True)
         if dn.startswith(separator):
             dn = dn[1:]
-        dlg = NewPythonPackageDialog(dn, self)
+        dlg = NewPythonPackageDialog(dn, parent=self)
         if dlg.exec() == QDialog.DialogCode.Accepted:
             packageName = dlg.getData()
             nameParts = packageName.split(".")
@@ -1636,12 +1636,12 @@
         files = [fn for fn in files if vm.checkFileDirty(fn)]
 
         if files:
-            dlg = BlackConfigurationDialog(withProject=True)
+            dlg = BlackConfigurationDialog(withProject=True, parent=self)
             if dlg.exec() == QDialog.DialogCode.Accepted:
                 config = dlg.getConfiguration()
 
                 formattingDialog = BlackFormattingDialog(
-                    config, files, project=self.project, action=action
+                    config, files, project=self.project, action=action, parent=self
                 )
                 formattingDialog.exec()
         else:
@@ -1692,12 +1692,12 @@
         files = [fn for fn in files if vm.checkFileDirty(fn)]
 
         if files:
-            dlg = IsortConfigurationDialog(withProject=True)
+            dlg = IsortConfigurationDialog(withProject=True, parent=self)
             if dlg.exec() == QDialog.DialogCode.Accepted:
                 config = dlg.getConfiguration()
 
                 formattingDialog = IsortFormattingDialog(
-                    config, files, project=self.project, action=action
+                    config, files, project=self.project, action=action, parent=self
                 )
                 formattingDialog.exec()
         else:

eric ide

mercurial