Browse Source

Error on RemoveAll

already is removed on `Remove(View view)`
Shargon 7 years ago
parent
commit
8bd35f0f10
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;
 				return;
 
 
 			while (subviews.Count > 0) {
 			while (subviews.Count > 0) {
-				var view = subviews [0];
-				Remove (view);
-				subviews.RemoveAt (0);
+				Remove (subviews[0]);
 			}
 			}
 		}
 		}