From 10a9e3365fbfc0b0b789385a3a212ca01d332ab1 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sun, 28 Jul 2013 18:00:49 +1200 Subject: Some refactoring of the console inteface. Reduce some state duplication, by removing currentflow variable. Fixes #141 --- libmproxy/console/flowlist.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libmproxy/console/flowlist.py') diff --git a/libmproxy/console/flowlist.py b/libmproxy/console/flowlist.py index 8fd4efce..124e252e 100644 --- a/libmproxy/console/flowlist.py +++ b/libmproxy/console/flowlist.py @@ -160,8 +160,7 @@ class ConnectionItem(common.WWrap): self.master.sync_list_view() elif key == "D": f = self.master.duplicate_flow(self.flow) - self.master.currentflow = f - self.master.focus_current() + self.master.view_flow(f) elif key == "r": self.flow.backup() r = self.master.replay_request(self.flow) -- cgit v1.2.3 From edb10e33aa84c45410bfbd1088b7714245c9f154 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Thu, 1 Aug 2013 11:08:00 +1200 Subject: Remove GPL notices left in source files after our change to the MIT license. Thanks to Roy Shamir for reporting this. --- libmproxy/console/flowlist.py | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'libmproxy/console/flowlist.py') diff --git a/libmproxy/console/flowlist.py b/libmproxy/console/flowlist.py index 124e252e..6ba97733 100644 --- a/libmproxy/console/flowlist.py +++ b/libmproxy/console/flowlist.py @@ -1,18 +1,3 @@ -# Copyright (C) 2012 Aldo Cortesi -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - import urwid import common -- cgit v1.2.3