diff -r 1f7d52f024b1 -r 4102a69604eb src/eric7/Plugins/DocumentationPlugins/Ericdoc/EricdocExecDialog.py --- a/src/eric7/Plugins/DocumentationPlugins/Ericdoc/EricdocExecDialog.py Thu Nov 16 15:56:12 2023 +0100 +++ b/src/eric7/Plugins/DocumentationPlugins/Ericdoc/EricdocExecDialog.py Thu Nov 16 16:45:23 2023 +0100 @@ -9,7 +9,7 @@ import os.path -from PyQt6.QtCore import QProcess, QTimer +from PyQt6.QtCore import QProcess, Qt, QTimer, pyqtSignal from PyQt6.QtWidgets import QDialog, QDialogButtonBox from eric7 import Preferences @@ -24,8 +24,12 @@ This class starts a QProcess and displays a dialog that shows the output of the documentation command process. + + @signal processFinished() emitted to indicate the eric7_doc process finished """ + processFinished = pyqtSignal() + def __init__(self, cmdname, parent=None): """ Constructor @@ -34,8 +38,8 @@ @param parent parent widget of this dialog (QWidget) """ super().__init__(parent) - self.setModal(True) self.setupUi(self) + self.setWindowFlags(Qt.WindowType.Window) self.buttonBox.button(QDialogButtonBox.StandardButton.Close).setEnabled(False) self.buttonBox.button(QDialogButtonBox.StandardButton.Cancel).setDefault(True) @@ -130,6 +134,8 @@ self.contents.insertPlainText(self.tr("\n{0} finished.\n").format(self.cmdname)) self.contents.ensureCursorVisible() + self.processFinished.emit() + def __readStdout(self): """ Private slot to handle the readyReadStandardOutput signal.