[gnome-nibbles/arnaudb/modernize-code: 57/58] Fix a bug.
- From: Arnaud B. <arnaudb src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gnome-nibbles/arnaudb/modernize-code: 57/58] Fix a bug.
 
- Date: Wed, 10 Jun 2020 17:17:44 +0000 (UTC)
 
commit e98af152496e9cb8c4d6edb0a1d3d1e3d221a61c
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Tue Jun 2 15:40:07 2020 +0200
    Fix a bug.
    
    Ctrl-N during first-run was
    allowing a crash on cancel.
 src/nibbles-window.vala | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/nibbles-window.vala b/src/nibbles-window.vala
index f3ec096..878f5e6 100644
--- a/src/nibbles-window.vala
+++ b/src/nibbles-window.vala
@@ -163,6 +163,10 @@ private class NibblesWindow : ApplicationWindow
             FirstRun first_run_panel = new FirstRun ();
             first_run_panel.show ();
             main_stack.add_named (first_run_panel, "first-run");
+
+            new_game_action.set_enabled (false);
+            pause_action.set_enabled (false);
+
             main_stack.set_visible_child (first_run_panel);
         }
         else
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]