Don't auto-view request if there's no response.

This is confusing when flicking through many flows.
This commit is contained in:
Aldo Cortesi
2012-03-26 11:28:52 +13:00
parent a050eeef05
commit d187965233

View File

@@ -116,7 +116,7 @@ class FlowView(common.WWrap):
def __init__(self, master, state, flow):
self.master, self.state, self.flow = master, state, flow
self.view_body_pretty_type = contentview.VIEW_CONTENT_PRETTY_TYPE_AUTO
if self.state.view_flow_mode == common.VIEW_FLOW_RESPONSE and flow.response:
if self.state.view_flow_mode == common.VIEW_FLOW_RESPONSE:
self.view_response()
else:
self.view_request()