diff options
author | Walter Bender <walter.bender@gmail.com> | 2011-05-09 22:43:41 (GMT) |
---|---|---|
committer | Walter Bender <walter.bender@gmail.com> | 2011-05-09 22:43:41 (GMT) |
commit | 1bb3d65ae307440e59043b9df803ba4c832350c7 (patch) | |
tree | de8a29c407b1b54fba9687644ee014c72718f361 /PortfolioActivity.py | |
parent | 66e23794b4c53895ec424c94d7703c54bf51bed3 (diff) |
check for corner case where no Journal entries are starred
Diffstat (limited to 'PortfolioActivity.py')
-rw-r--r-- | PortfolioActivity.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/PortfolioActivity.py b/PortfolioActivity.py index 0262353..e299865 100644 --- a/PortfolioActivity.py +++ b/PortfolioActivity.py @@ -301,6 +301,12 @@ class PortfolioActivity(activity.Activity): def _show_slide(self, i): self._clear_screen() + + if self._nobjects == 0: + self._prev_button.set_icon('go-previous-inactive') + self._next_button.set_icon('go-next-inactive') + return + print self._dsobjects[i].metadata['title'] if self.i == 0: |