diff -r adf11836cfce -r d359172d11be eric6/DataViews/PyProfileDialog.py --- a/eric6/DataViews/PyProfileDialog.py Fri Apr 09 18:13:36 2021 +0200 +++ b/eric6/DataViews/PyProfileDialog.py Fri Apr 09 18:38:01 2021 +0200 @@ -163,7 +163,6 @@ self.checkProgress.setMaximum(len(self.stats)) QApplication.processEvents() - progress = 0 total_calls = 0 prim_calls = 0 total_tt = 0 @@ -174,7 +173,9 @@ self.resultList.setSortingEnabled(False) # now go through all the files - for func, (cc, nc, tt, ct, _callers) in list(self.stats.items()): + for progress, (func, (cc, nc, tt, ct, _callers)) in enumerate( + list(self.stats.items()), start=1 + ): if self.cancelled: return @@ -207,7 +208,6 @@ self.__createResultItem(c, tt, tpc, ct, cpc, func[0], func[1], func[2]) - progress += 1 self.checkProgress.setValue(progress) QApplication.processEvents() finally: