From 485a4fb757936c52cac89e6cc6ce0cfa94ef4106 Mon Sep 17 00:00:00 2001 From: Martin Baeuml Date: Thu, 9 Dec 2010 17:18:21 +0100 Subject: [PATCH] fix navigation --- labeltool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/labeltool.py b/labeltool.py index 56b38a2..64cbd6d 100755 --- a/labeltool.py +++ b/labeltool.py @@ -202,8 +202,8 @@ class MainWindow(QMainWindow): def gotoPrevious(self): # TODO move this to the scene if self.model_ is not None and self.current_index_ is not None: - next_index = self.model_.getNextIndex(self.current_index_) - self.setCurrentIndex(next_index) + prev_index = self.model_.getPreviousIndex(self.current_index_) + self.setCurrentIndex(prev_index) def updateStatus(self, message=''): self.statusBar().showMessage(message, 5000)