When paging through flows in flowview, indicate when there are no more flows.

This commit is contained in:
Aldo Cortesi 2012-03-28 10:21:48 +13:00
parent a6df72cfc8
commit 6dc945571d

View File

@ -360,6 +360,7 @@ class FlowView(common.WWrap):
else: else:
new_flow, new_idx = self.state.get_prev(idx) new_flow, new_idx = self.state.get_prev(idx)
if new_idx is None: if new_idx is None:
self.master.statusbar.message("No more flows!")
return return
self.master.view_flow(new_flow) self.master.view_flow(new_flow)
@ -387,7 +388,7 @@ class FlowView(common.WWrap):
def keypress(self, size, key): def keypress(self, size, key):
if key == " ": if key == " ":
self.view_next_flow(self.flow) self.view_next_flow(self.flow)
return key return
key = common.shortcuts(key) key = common.shortcuts(key)
if self.state.view_flow_mode == common.VIEW_FLOW_REQUEST: if self.state.view_flow_mode == common.VIEW_FLOW_REQUEST: