Thu, 03 Apr 2025 19:50:43 +0200
Modified the display of the crash session dialog to show the time stamp of the found crash session file and the path of the project file (if a project was open) (see issue584).
# Form implementation generated from reading ui file 'src/eric7/Sessions/CrashedSessionsSelectionDialog.ui' # # Created by: PyQt6 UI code generator 6.8.1 # # WARNING: Any manual changes made to this file will be lost when pyuic6 is # run again. Do not edit this file unless you know what you are doing. from PyQt6 import QtCore, QtGui, QtWidgets class Ui_CrashedSessionsSelectionDialog(object): def setupUi(self, CrashedSessionsSelectionDialog): CrashedSessionsSelectionDialog.setObjectName("CrashedSessionsSelectionDialog") CrashedSessionsSelectionDialog.resize(400, 500) CrashedSessionsSelectionDialog.setSizeGripEnabled(True) self.verticalLayout = QtWidgets.QVBoxLayout(CrashedSessionsSelectionDialog) self.verticalLayout.setObjectName("verticalLayout") self.messageLabel = QtWidgets.QLabel(parent=CrashedSessionsSelectionDialog) self.messageLabel.setWordWrap(True) self.messageLabel.setObjectName("messageLabel") self.verticalLayout.addWidget(self.messageLabel) self.crashedSessionsList = QtWidgets.QListWidget(parent=CrashedSessionsSelectionDialog) self.crashedSessionsList.setAlternatingRowColors(True) self.crashedSessionsList.setWordWrap(True) self.crashedSessionsList.setObjectName("crashedSessionsList") self.verticalLayout.addWidget(self.crashedSessionsList) self.buttonBox = QtWidgets.QDialogButtonBox(parent=CrashedSessionsSelectionDialog) self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal) self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok) self.buttonBox.setObjectName("buttonBox") self.verticalLayout.addWidget(self.buttonBox) self.retranslateUi(CrashedSessionsSelectionDialog) self.buttonBox.accepted.connect(CrashedSessionsSelectionDialog.accept) # type: ignore self.buttonBox.rejected.connect(CrashedSessionsSelectionDialog.reject) # type: ignore QtCore.QMetaObject.connectSlotsByName(CrashedSessionsSelectionDialog) def retranslateUi(self, CrashedSessionsSelectionDialog): _translate = QtCore.QCoreApplication.translate CrashedSessionsSelectionDialog.setWindowTitle(_translate("CrashedSessionsSelectionDialog", "Found Crash Sessions")) self.messageLabel.setText(_translate("CrashedSessionsSelectionDialog", "These crash session files were found. Select the one to open. Select \'Cancel\' to not open a crash session."))