fix clear key

This commit is contained in:
Maximilian Hils 2014-11-10 17:35:28 +01:00
parent 807a8eb759
commit 6f3b4eee3c

View File

@ -637,10 +637,11 @@ class FlowView(common.WWrap):
return self._view_nextprev_flow("prev", flow) return self._view_nextprev_flow("prev", flow)
def change_this_display_mode(self, t): def change_this_display_mode(self, t):
key = (self.state.view_flow_mode, "prettyview") self.state.add_flow_setting(
value = contentview.get_by_shortcut(t) self.flow,
if value: (self.state.view_flow_mode, "prettyview"),
self.state.add_flow_setting(self.flow, key, value) contentview.get_by_shortcut(t)
)
self.master.refresh_flow(self.flow) self.master.refresh_flow(self.flow)
def delete_body(self, t): def delete_body(self, t):