Modified the 'parent' handling for the DeleteFilesConfirmationDialog class. eric7

Mon, 14 Apr 2025 12:22:18 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 14 Apr 2025 12:22:18 +0200
branch
eric7
changeset 11218
43dfc40728d2
parent 11217
856628e8a303
child 11219
72ff8c49919e

Modified the 'parent' handling for the DeleteFilesConfirmationDialog class.

src/eric7/CondaInterface/Conda.py file | annotate | diff | comparison | revisions
src/eric7/PipInterface/Pip.py file | annotate | diff | comparison | revisions
src/eric7/Plugins/VcsPlugins/vcsGit/git.py file | annotate | diff | comparison | revisions
src/eric7/Plugins/VcsPlugins/vcsMercurial/HgTagBranchListDialog.py file | annotate | diff | comparison | revisions
src/eric7/Plugins/VcsPlugins/vcsMercurial/hg.py file | annotate | diff | comparison | revisions
src/eric7/Plugins/VcsPlugins/vcsPySvn/subversion.py file | annotate | diff | comparison | revisions
src/eric7/Plugins/VcsPlugins/vcsSubversion/subversion.py file | annotate | diff | comparison | revisions
src/eric7/Project/ProjectBaseBrowser.py file | annotate | diff | comparison | revisions
src/eric7/Project/ProjectFormsBrowser.py file | annotate | diff | comparison | revisions
src/eric7/Project/ProjectOthersBrowser.py file | annotate | diff | comparison | revisions
src/eric7/Project/ProjectResourcesBrowser.py file | annotate | diff | comparison | revisions
src/eric7/Project/ProjectSourcesBrowser.py file | annotate | diff | comparison | revisions
src/eric7/Project/ProjectTranslationsBrowser.py file | annotate | diff | comparison | revisions
src/eric7/UI/Browser.py file | annotate | diff | comparison | revisions
--- a/src/eric7/CondaInterface/Conda.py	Sun Apr 13 15:53:14 2025 +0200
+++ b/src/eric7/CondaInterface/Conda.py	Mon Apr 14 12:22:18 2025 +0200
@@ -500,7 +500,7 @@
 
         if packages:
             dlg = DeleteFilesConfirmationDialog(
-                self.parent(),
+                self.__ui,
                 self.tr("Uninstall Packages"),
                 self.tr(
                     "Do you really want to uninstall these packages and"
--- a/src/eric7/PipInterface/Pip.py	Sun Apr 13 15:53:14 2025 +0200
+++ b/src/eric7/PipInterface/Pip.py	Mon Apr 14 12:22:18 2025 +0200
@@ -663,7 +663,7 @@
         res = False
         if packages and venvName:
             dlg = DeleteFilesConfirmationDialog(
-                self.parent(),
+                self.__ui,
                 self.tr("Uninstall Packages"),
                 self.tr("Do you really want to uninstall these packages?"),
                 packages,
@@ -702,7 +702,7 @@
                         return
 
                     dlg = DeleteFilesConfirmationDialog(
-                        self.parent(),
+                        self.__ui,
                         self.tr("Uninstall Packages"),
                         self.tr("Do you really want to uninstall these packages?"),
                         reqs,
@@ -776,7 +776,7 @@
                             break
 
                     dlg = DeleteFilesConfirmationDialog(
-                        self.parent(),
+                        self.__ui,
                         self.tr("Uninstall Packages"),
                         self.tr("Do you really want to uninstall these packages?"),
                         dependencies,
--- a/src/eric7/Plugins/VcsPlugins/vcsGit/git.py	Sun Apr 13 15:53:14 2025 +0200
+++ b/src/eric7/Plugins/VcsPlugins/vcsGit/git.py	Mon Apr 14 12:22:18 2025 +0200
@@ -981,7 +981,7 @@
         names = [project.getRelativePath(nam) for nam in names]
         if names[0]:
             dlg = DeleteFilesConfirmationDialog(
-                self.parent(),
+                self.__ui,
                 self.tr("Revert changes"),
                 self.tr(
                     "Do you really want to revert all changes to these files"
--- a/src/eric7/Plugins/VcsPlugins/vcsMercurial/HgTagBranchListDialog.py	Sun Apr 13 15:53:14 2025 +0200
+++ b/src/eric7/Plugins/VcsPlugins/vcsMercurial/HgTagBranchListDialog.py	Mon Apr 14 12:22:18 2025 +0200
@@ -403,7 +403,7 @@
         ]
 
         dlg = DeleteFilesConfirmationDialog(
-            self.parent(),
+            self,
             self.tr("Close Branches"),
             self.tr("Do you really want to close all listed branches?"),
             branches,
--- a/src/eric7/Plugins/VcsPlugins/vcsMercurial/hg.py	Sun Apr 13 15:53:14 2025 +0200
+++ b/src/eric7/Plugins/VcsPlugins/vcsMercurial/hg.py	Mon Apr 14 12:22:18 2025 +0200
@@ -1002,7 +1002,7 @@
         names = [project.getRelativePath(nam) for nam in names]
         if names[0]:
             dlg = DeleteFilesConfirmationDialog(
-                self.parent(),
+                self.__ui,
                 self.tr("Revert changes"),
                 self.tr(
                     "Do you really want to revert all changes to these files"
@@ -1097,7 +1097,7 @@
         names = [project.getRelativePath(nam) for nam in names]
         if names[0]:
             dlg = DeleteFilesConfirmationDialog(
-                self.parent(),
+                self.__ui,
                 self.tr("Re-Merge"),
                 self.tr("Do you really want to re-merge these files or directories?"),
                 names,
--- a/src/eric7/Plugins/VcsPlugins/vcsPySvn/subversion.py	Sun Apr 13 15:53:14 2025 +0200
+++ b/src/eric7/Plugins/VcsPlugins/vcsPySvn/subversion.py	Mon Apr 14 12:22:18 2025 +0200
@@ -1247,7 +1247,7 @@
         names = [project.getRelativePath(nam) for nam in name]
         if names[0]:
             dia = DeleteFilesConfirmationDialog(
-                self.parent(),
+                self.__ui,
                 self.tr("Revert changes"),
                 self.tr(
                     "Do you really want to revert all changes to these files"
--- a/src/eric7/Plugins/VcsPlugins/vcsSubversion/subversion.py	Sun Apr 13 15:53:14 2025 +0200
+++ b/src/eric7/Plugins/VcsPlugins/vcsSubversion/subversion.py	Mon Apr 14 12:22:18 2025 +0200
@@ -1152,7 +1152,7 @@
         names = [project.getRelativePath(nam) for nam in names]
         if names[0]:
             dlg = DeleteFilesConfirmationDialog(
-                self.parent(),
+                self.__ui,
                 self.tr("Revert changes"),
                 self.tr(
                     "Do you really want to revert all changes to"
--- a/src/eric7/Project/ProjectBaseBrowser.py	Sun Apr 13 15:53:14 2025 +0200
+++ b/src/eric7/Project/ProjectBaseBrowser.py	Mon Apr 14 12:22:18 2025 +0200
@@ -330,7 +330,7 @@
             dirs.append(dn)
 
         dlg = DeleteFilesConfirmationDialog(
-            self.parent(),
+            self,
             QCoreApplication.translate("ProjectBaseBrowser", "Delete directories"),
             QCoreApplication.translate(
                 "ProjectBaseBrowser",
--- a/src/eric7/Project/ProjectFormsBrowser.py	Sun Apr 13 15:53:14 2025 +0200
+++ b/src/eric7/Project/ProjectFormsBrowser.py	Mon Apr 14 12:22:18 2025 +0200
@@ -754,7 +754,7 @@
             files.append(fn)
 
         dlg = DeleteFilesConfirmationDialog(
-            self.parent(),
+            self,
             self.tr("Delete forms"),
             self.tr("Do you really want to delete these forms from the project?"),
             files,
--- a/src/eric7/Project/ProjectOthersBrowser.py	Sun Apr 13 15:53:14 2025 +0200
+++ b/src/eric7/Project/ProjectOthersBrowser.py	Mon Apr 14 12:22:18 2025 +0200
@@ -714,7 +714,7 @@
         del dirNames
 
         dlg = DeleteFilesConfirmationDialog(
-            self.parent(),
+            self,
             self.tr("Delete files/directories"),
             self.tr("Do you really want to delete these entries from the project?"),
             names,
--- a/src/eric7/Project/ProjectResourcesBrowser.py	Sun Apr 13 15:53:14 2025 +0200
+++ b/src/eric7/Project/ProjectResourcesBrowser.py	Mon Apr 14 12:22:18 2025 +0200
@@ -594,7 +594,7 @@
             files.append(fn)
 
         dlg = DeleteFilesConfirmationDialog(
-            self.parent(),
+            self,
             self.tr("Delete resources"),
             self.tr("Do you really want to delete these resources from the project?"),
             files,
--- a/src/eric7/Project/ProjectSourcesBrowser.py	Sun Apr 13 15:53:14 2025 +0200
+++ b/src/eric7/Project/ProjectSourcesBrowser.py	Mon Apr 14 12:22:18 2025 +0200
@@ -1298,7 +1298,7 @@
             files.append(fn)
 
         dlg = DeleteFilesConfirmationDialog(
-            self.parent(),
+            self,
             self.tr("Delete files"),
             self.tr("Do you really want to delete these files from the project?"),
             files,
--- a/src/eric7/Project/ProjectTranslationsBrowser.py	Sun Apr 13 15:53:14 2025 +0200
+++ b/src/eric7/Project/ProjectTranslationsBrowser.py	Mon Apr 14 12:22:18 2025 +0200
@@ -846,7 +846,7 @@
         translationFiles = [itm.fileName() for itm in itmList]
 
         dlg = DeleteFilesConfirmationDialog(
-            self.parent(),
+            self,
             self.tr("Delete translation files"),
             self.tr(
                 "Do you really want to delete these translation files"
--- a/src/eric7/UI/Browser.py	Sun Apr 13 15:53:14 2025 +0200
+++ b/src/eric7/UI/Browser.py	Mon Apr 14 12:22:18 2025 +0200
@@ -1170,7 +1170,7 @@
         @type str
         """
         dlg = DeleteFilesConfirmationDialog(
-            self.parent(),
+            self,
             self.tr("Delete File"),
             self.tr("Do you really want to delete this file?"),
             [fn],
@@ -1199,7 +1199,7 @@
         @type str
         """
         dlg = DeleteFilesConfirmationDialog(
-            self.parent(),
+            self,
             self.tr("Delete Directory"),
             self.tr("Do you really want to delete this directory?"),
             [dn],
@@ -1233,7 +1233,7 @@
             fileNames.append(itm.fileName())
 
         dlg = DeleteFilesConfirmationDialog(
-            self.parent(),
+            self,
             self.tr("Delete Files"),
             self.tr("Do you really want to delete these files?"),
             sorted(fileNames),

eric ide

mercurial