Browse Source

Fix re-enabling windows when dialog is closed.

Steven Kirk 8 years ago
parent
commit
8e6b6258ed
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/Avalonia.Controls/Window.cs

+ 2 - 2
src/Avalonia.Controls/Window.cs

@@ -269,8 +269,8 @@ namespace Avalonia.Controls
 
             using (BeginAutoSizing())
             {
-                var affectedWindows = s_windows.Where(w => w.IsEnabled && w != this);
-                Window activated = affectedWindows.Where(w => w.IsActive).FirstOrDefault();
+                var affectedWindows = s_windows.Where(w => w.IsEnabled && w != this).ToList();
+                var activated = affectedWindows.Where(w => w.IsActive).FirstOrDefault();
                 SetIsEnabled(affectedWindows, false);
 
                 var modal = PlatformImpl.ShowDialog();