return the result of the base class methods in load_prev() and load_next()
authorThomas Schmidt <tschmidt@debian.org>
Fri, 16 Oct 2009 22:33:56 +0000 (00:33 +0200)
committerThomas Schmidt <tschmidt@debian.org>
Fri, 16 Oct 2009 22:33:56 +0000 (00:33 +0200)
canola-flickr/flickr/ui.py

index 64a8eb6..921999c 100644 (file)
@@ -350,11 +350,13 @@ class ImageViewerController(BaseImageViewerController):
 
     def load_prev(self, end_callback=None):
         log.debug("switching to previous photo!")
-        BaseImageViewerController.load_prev(self, end_callback=end_callback)
+        res = BaseImageViewerController.load_prev(self, end_callback=end_callback)
         self.reload_favorite_option_model()
+        return res
 
     def load_next(self, loop=False, end_callback=None):
         log.debug("switching to next photo!")
-        BaseImageViewerController.load_next(self, end_callback=end_callback)
+        res = BaseImageViewerController.load_next(self, end_callback=end_callback)
         self.reload_favorite_option_model()
+        return res