From 8bd35f0f102f235f4e5e59d1d9fcd1d306929a78 Mon Sep 17 00:00:00 2001 From: Shargon Date: Thu, 26 Jul 2018 16:50:40 +0200 Subject: [PATCH] Error on RemoveAll already is removed on `Remove(View view)` --- Terminal.Gui/Core.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Terminal.Gui/Core.cs b/Terminal.Gui/Core.cs index ace30b8f1..9f569b396 100644 --- a/Terminal.Gui/Core.cs +++ b/Terminal.Gui/Core.cs @@ -499,9 +499,7 @@ namespace Terminal.Gui { return; while (subviews.Count > 0) { - var view = subviews [0]; - Remove (view); - subviews.RemoveAt (0); + Remove (subviews[0]); } }