src/FingersDance/MainSurfaceWindow.xaml.cs
changeset 168 d70ee2002f75
parent 162 0b9f989bcb37
child 182 25b49d4f1635
--- a/src/FingersDance/MainSurfaceWindow.xaml.cs	Sun Oct 18 17:42:21 2009 +0200
+++ b/src/FingersDance/MainSurfaceWindow.xaml.cs	Sun Oct 25 12:38:45 2009 +0100
@@ -490,6 +490,8 @@
                 }
             }
             root.Children.Remove(((UserControlClose)sender));
+            if (Panel1 == null && Panel2 == null && Panel3 == null && Panel4 == null)
+                _mainviewmodel.CloseSession();
         }