aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2017-02-12 15:28:08 +0300
committerIgor Pashev <pashev.igor@gmail.com>2017-02-12 15:28:08 +0300
commit3ce30319d392ea27852e50264e39d739ef17b5c2 (patch)
tree0693642a9686e8d3dccc5277e8a7acb8a32071ae
parent74234fe1bac0a87c6c1e4c97c3aca3932c745877 (diff)
downloadyoso-3ce30319d392ea27852e50264e39d739ef17b5c2.tar.gz
Fixed off-by-one error in progress bar
-rw-r--r--YOSO/MainWindow.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/YOSO/MainWindow.py b/YOSO/MainWindow.py
index 5da8382..3b31dfe 100644
--- a/YOSO/MainWindow.py
+++ b/YOSO/MainWindow.py
@@ -38,7 +38,7 @@ class MainWindow(QMainWindow):
self._image_spinner.setValue(0)
image_total = len(self._current_images)
if image_total > 0:
- self._progress_bar.setRange(1, image_total + 1)
+ self._progress_bar.setRange(0, image_total)
self._image_spinner.setRange(1, image_total)
self._image_spinner.setEnabled(True)
self._image_spinner.setValue(1)