"Q" quits without confirmation prompt.

This commit is contained in:
Aldo Cortesi
2011-02-03 12:20:05 +13:00
parent d8cb826361
commit f6c8654f08

View File

@@ -944,6 +944,7 @@ class ConsoleMaster(controller.Master):
("l", "set limit filter pattern"), ("l", "set limit filter pattern"),
("L", "load saved flows"), ("L", "load saved flows"),
("q", "quit / return to connection list"), ("q", "quit / return to connection list"),
("Q", "quit without confirm prompt"),
("r", "replay request"), ("r", "replay request"),
("R", "revert changes to request"), ("R", "revert changes to request"),
("S", "save all flows matching current limit"), ("S", "save all flows matching current limit"),
@@ -1158,6 +1159,8 @@ class ConsoleMaster(controller.Master):
elif k == "k": elif k == "k":
k = "up" k = "up"
elif k in ("q", "Q"): elif k in ("q", "Q"):
if k == "Q":
raise Stop
if self.viewstate == VIEW_FLOW: if self.viewstate == VIEW_FLOW:
self.view_connlist() self.view_connlist()
elif self.viewstate == VIEW_HELP: elif self.viewstate == VIEW_HELP: