mirror of
https://github.com/wassname/sloth.git
synced 2026-07-13 15:04:10 +08:00
fix navigation
This commit is contained in:
+2
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user