src/eric7/EricWidgets/EricAuthenticationDialog.py

branch
eric7
changeset 11035
e1e1d6e317c7
parent 10927
ce599998be7d
child 11090
f5f5f5803935
diff -r 7b8a21fd2d58 -r e1e1d6e317c7 src/eric7/EricWidgets/EricAuthenticationDialog.py
--- a/src/eric7/EricWidgets/EricAuthenticationDialog.py	Sun Nov 03 17:50:34 2024 +0100
+++ b/src/eric7/EricWidgets/EricAuthenticationDialog.py	Sun Nov 03 18:12:28 2024 +0100
@@ -7,6 +7,7 @@
 Module implementing the authentication dialog for the help browser.
 """
 
+from PyQt6.QtCore import QCoreApplication
 from PyQt6.QtWidgets import QDialog, QStyle
 
 from .Ui_EricAuthenticationDialog import Ui_EricAuthenticationDialog
@@ -32,6 +33,9 @@
         @param parent reference to the parent widget
         @type QWidget
         """
+        if parent is None:
+            parent = QCoreApplication.instance().getMainWindow()
+
         super().__init__(parent)
         self.setupUi(self)
 

eric ide

mercurial