8000 fix an old bug revealed by PyQt5 · winpython/winpython@ca729b1 · GitHub
[go: up one dir, main page]

Skip to content

Commit ca729b1

Browse files
author
stonebig
committed
fix an old bug revealed by PyQt5
1 parent c24ae96 commit ca729b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

winpython/controlpanel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ def process_packages(self, action):
666666
except AttributeError:
667667
status = self.parent().statusBar()
668668
progress = QProgressDialog(self, Qt.FramelessWindowHint)
669-
progress.setMaximum(len(packages)-1)
669+
progress.setMaximum(len(packages)) # old vicious bug:len(packages)-1
670670
for index, package in enumerate(packages):
671671
progress.setValue(index)
672672
progress.setLabelText("%s %s %s..."

0 commit comments

Comments
 (0)
0