diff -r 7e0e5376ace4 -r 5798ee4a8807 src/eric7/CodeFormatting/IsortFormattingDialog.py --- a/src/eric7/CodeFormatting/IsortFormattingDialog.py Fri Nov 04 13:44:05 2022 +0100 +++ b/src/eric7/CodeFormatting/IsortFormattingDialog.py Fri Nov 04 13:46:31 2022 +0100 @@ -75,8 +75,6 @@ super().__init__(parent) self.setupUi(self) - self.progressBar.setMaximum(len(filesList)) - self.resultsList.header().setSortIndicator(1, Qt.SortOrder.AscendingOrder) self.__project = project @@ -129,6 +127,7 @@ """ Private method to execute the requested sorting action. """ + self.progressBar.setMaximum(len(self.__filesList)) self.progressBar.setValue(0) self.progressBar.setVisible(True)