Use current_idx api call

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
This commit is contained in:
Adam Stokes 2015-07-13 10:14:49 -04:00
parent 6b718b0fbf
commit 3689b2cba3
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ class BaseController:
raise urwid.ExitMainLoop()
def header_hotkeys(self, key):
if key in ['esc'] and Routes.current_route_idx != 0:
if key in ['esc'] and Routes.current_idx() != 0:
Routes.prev()
current_route = Routes.current()
current_route(self).show()