fix navigation

This commit is contained in:
Martin Baeuml
2010-12-09 17:18:21 +01:00
parent 4560ffa2c2
commit 485a4fb757
+2 -2
View File
@@ -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)