Browse Source

Merge pull request #117 from shargon/patch-1

Error on RemoveAll
Miguel de Icaza 7 years ago
parent
commit
75818ba19d
1 changed files with 1 additions and 3 deletions
  1. 1 3
      Terminal.Gui/Core.cs

+ 1 - 3
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]);
 			}
 		}