Commit 7ee6cbb7 authored by Arnaud B.'s avatar Arnaud B. Committed by Michael Catanzaro
Browse files

Don't remove the view when restarting.

https://bugzilla.gnome.org/show_bug.cgi?id=664976
parent fb6b49e6
......@@ -40,7 +40,6 @@ public class Iagno : Gtk.Application
private Gtk.Label light_score_label;
private Gtk.Dialog propbox;
private Gtk.Stack main_stack;
private Gtk.Box game_box;
private Gtk.Button back_button;
private Gtk.Button undo_button;
......@@ -202,7 +201,7 @@ public class Iagno : Gtk.Application
view.halign = Gtk.Align.FILL;
view.show ();
game_box = builder.get_object ("game-box") as Gtk.Box;
var game_box = builder.get_object ("game-box") as Gtk.Box;
game_box.pack_start (view);
/* Information widgets */
......@@ -314,16 +313,11 @@ public class Iagno : Gtk.Application
if (computer != null)
computer.cancel_move ();
if (view != null)
game_box.remove (view);
show_game_board ();
game = new Game (alternative_start, size);
game.turn_ended.connect (turn_ended_cb);
view.game = game;
view.show ();
game_box.pack_start (view);
var mode = settings.get_string ("play-as");
if (mode == "two-players")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment