/[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 06:40:59	176
+++ trunk/EmuXPortal/Form1.cs	2014/08/04 06:43:34	177
@@ -74,20 +74,22 @@
                         else
                         {
                             log.WriteLine("Removed from favorites: {0} [{1}]", config.RomTitle, config.RomFile);
-
-                            var parent = c.Parent;
-                            if (parent != null)
+                            if (config.Config.PlatformNameShort == "Favorites")
                             {
-                                parent.Controls.Remove(c);
-                                if (parent.Controls.Count > 0)
+                                var parent = c.Parent;
+                                if (parent != null)
                                 {
-                                    var next_ctrl = parent.Controls[0];
-                                    if (next_ctrl != null)
+                                    parent.Controls.Remove(c);
+                                    if (parent.Controls.Count > 0)
                                     {
-                                        next_ctrl.Select();
+                                        var next_ctrl = parent.Controls[0];
+                                        if (next_ctrl != null)
+                                        {
+                                            next_ctrl.Select();
+                                        }
                                     }
                                 }
-                            }
+                            }                       
                         }
                     }
                     else

 

  ViewVC Help
Powered by ViewVC 1.1.22