--- a/src/eric7/UI/UserInterface.py Wed Apr 02 16:56:06 2025 +0200 +++ b/src/eric7/UI/UserInterface.py Thu Apr 03 19:50:43 2025 +0200 @@ -49,7 +49,6 @@ ) from PyQt6.QtNetwork import QNetworkAccessManager, QNetworkProxyFactory from PyQt6.QtWidgets import ( - QAbstractItemView, QApplication, QDialog, QDockWidget, @@ -80,7 +79,6 @@ from eric7.EricWidgets import EricErrorMessage, EricFileDialog, EricMessageBox from eric7.EricWidgets.EricApplication import ericApp from eric7.EricWidgets.EricClickableLabel import EricClickableLabel -from eric7.EricWidgets.EricListSelectionDialog import EricListSelectionDialog from eric7.EricWidgets.EricMainWindow import EricMainWindow from eric7.EricWidgets.EricSingleApplication import EricSingleApplicationServer from eric7.EricWidgets.EricToolBarManager import EricToolBarManager @@ -94,6 +92,7 @@ from eric7.Project.Project import Project from eric7.QScintilla.SpellChecker import SpellChecker from eric7.RemoteServerInterface.EricServerInterface import EricServerInterface +from eric7.Sessions.CrashedSessionsSelectionDialog import CrashedSessionsSelectionDialog from eric7.Sessions.SessionFile import SessionFile from eric7.SystemUtilities import ( DesktopUtilities, @@ -7958,19 +7957,12 @@ selectedCrashSessionFile = "" crashedSessionsList = self.__getCrashedSessions() if crashedSessionsList: - dlg = EricListSelectionDialog( - sorted(crashedSessionsList), - selectionMode=QAbstractItemView.SelectionMode.SingleSelection, - title=self.tr("Found Crash Sessions"), - message=self.tr( - "These crash session files were found. Select the one to" - " open. Select 'Cancel' to not open a crash session." - ), - doubleClickOk=True, - parent=self, + dlg = CrashedSessionsSelectionDialog( + sorted(crashedSessionsList), parent=self + ) if dlg.exec() == QDialog.DialogCode.Accepted: - selectedCrashSessionFile = dlg.getSelection()[0] + selectedCrashSessionFile = dlg.getSelectedCrashSession() return selectedCrashSessionFile