diff -r 7b8a21fd2d58 -r e1e1d6e317c7 src/eric7/EricWidgets/EricComboSelectionDialog.py --- a/src/eric7/EricWidgets/EricComboSelectionDialog.py Sun Nov 03 17:50:34 2024 +0100 +++ b/src/eric7/EricWidgets/EricComboSelectionDialog.py Sun Nov 03 18:12:28 2024 +0100 @@ -7,7 +7,7 @@ Module implementing a dialog to select one entry from a list of strings. """ -from PyQt6.QtCore import pyqtSlot +from PyQt6.QtCore import QCoreApplication, pyqtSlot from PyQt6.QtWidgets import QDialog, QDialogButtonBox from .Ui_EricComboSelectionDialog import Ui_EricComboSelectionDialog @@ -31,6 +31,9 @@ @param parent reference to the parent widget (defaults to None) @type QWidget (optional) """ + if parent is None: + parent = QCoreApplication.instance().getMainWindow() + super().__init__(parent) self.setupUi(self)