From bfb5e1ea4272e6cbac397de1f1bbd5bd1a9d7bbc Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Thu, 7 Mar 2019 13:47:29 +0800 Subject: [PATCH] [Fix]Close #1439 --- vnpy/app/cta_strategy/ui/widget.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vnpy/app/cta_strategy/ui/widget.py b/vnpy/app/cta_strategy/ui/widget.py index 2d1b20df..9516b43f 100644 --- a/vnpy/app/cta_strategy/ui/widget.py +++ b/vnpy/app/cta_strategy/ui/widget.py @@ -125,7 +125,7 @@ class CtaManager(QtWidgets.QWidget): def remove_strategy(self, strategy_name): """""" - manager = self.managers[strategy_name] + manager = self.managers.pop(strategy_name) manager.deleteLater() def add_strategy(self):