src/eric7/ViewManager/ViewManager.py

branch
eric7
changeset 11006
a671918232f3
parent 10986
39a97ad73ee5
child 11090
f5f5f5803935
diff -r b918c6c2736b -r a671918232f3 src/eric7/ViewManager/ViewManager.py
--- a/src/eric7/ViewManager/ViewManager.py	Fri Oct 25 09:47:48 2024 +0200
+++ b/src/eric7/ViewManager/ViewManager.py	Fri Oct 25 17:58:59 2024 +0200
@@ -6681,7 +6681,7 @@
         """
         from .BookmarkedFilesDialog import BookmarkedFilesDialog
 
-        dlg = BookmarkedFilesDialog(self.bookmarked, self.ui)
+        dlg = BookmarkedFilesDialog(self.bookmarked, parent=self.ui)
         if dlg.exec() == QDialog.DialogCode.Accepted:
             self.bookmarked = dlg.getBookmarkedFiles()
 
@@ -7075,7 +7075,7 @@
         aw = self.activeWindow()
         lines = aw.lines()
         curLine = aw.getCursorPosition()[0] + 1
-        dlg = GotoDialog(lines, curLine, self.ui, None, True)
+        dlg = GotoDialog(lines, curLine, parent=self.ui, modal=True)
         if dlg.exec() == QDialog.DialogCode.Accepted:
             aw.gotoLine(dlg.getLinenumber(), expand=True)
 
@@ -7179,7 +7179,7 @@
             else self.activeWindow()
         )
         if aw:
-            dlg = ZoomDialog(aw.getZoom(), self.ui, None, True)
+            dlg = ZoomDialog(aw.getZoom(), parent=self.ui, modal=True)
             if dlg.exec() == QDialog.DialogCode.Accepted:
                 value = dlg.getZoomSize()
                 self.__zoomTo(value)
@@ -7707,7 +7707,7 @@
                 QCoreApplication.translate("ViewManager", "Editing {0}").format(
                     fileInfo
                 ),
-                self.ui,
+                parent=self.ui,
             )
             if dlg.exec() == QDialog.DialogCode.Accepted:
                 data = dlg.getData()

eric ide

mercurial