[gnome-games/glchess-vala] Fix 2d/3d switch



commit d5933d5c067bf0be8c5129f4d97a2ed5af46dc52
Author: Robert Ancell <robert ancell canonical com>
Date:   Sat Dec 11 17:49:25 2010 +1100

    Fix 2d/3d switch

 glchess/src/glchess.vala |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/glchess/src/glchess.vala b/glchess/src/glchess.vala
index f4a3ba0..ca0656b 100644
--- a/glchess/src/glchess.vala
+++ b/glchess/src/glchess.vala
@@ -103,7 +103,10 @@ public class Application
         if (key == "show-3d")
         {
             if (view != null)
+            {
+                view_container.remove (view);
                 view.destroy ();
+            }
             if (settings.get_boolean ("show-3d"))
                 view = new ChessView3D ();
             else



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]