/[EmuXPortal]/branches/mono/EmuXPortal/Form1.cs
ViewVC logotype

Diff of /branches/mono/EmuXPortal/Form1.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/EmuXPortal/Form1.cs	2014/08/04 05:36:08	172
+++ trunk/EmuXPortal/Form1.cs	2014/08/04 06:40:59	176
@@ -74,6 +74,20 @@
                         else
                         {
                             log.WriteLine("Removed from favorites: {0} [{1}]", config.RomTitle, config.RomFile);
+
+                            var parent = c.Parent;
+                            if (parent != null)
+                            {
+                                parent.Controls.Remove(c);
+                                if (parent.Controls.Count > 0)
+                                {
+                                    var next_ctrl = parent.Controls[0];
+                                    if (next_ctrl != null)
+                                    {
+                                        next_ctrl.Select();
+                                    }
+                                }
+                            }
                         }
                     }
                     else

 

  ViewVC Help
Powered by ViewVC 1.1.22