From 7ab9209f06b89f6f830169f1f3e4a2afda2c44aa Mon Sep 17 00:00:00 2001 From: David King Date: Tue, 3 Sep 2013 17:53:13 +0100 Subject: Disable the preferences action while shooting Changing the resolution or camera device while recording can lead to a crash, so avoid the problem by disabling the preferences action whenever the mode change actions are disabled. Fixes bug 670782. --- src/cheese-window.vala | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cheese-window.vala b/src/cheese-window.vala index a406288..4585a66 100644 --- a/src/cheese-window.vala +++ b/src/cheese-window.vala @@ -381,6 +381,8 @@ public class Cheese.MainWindow : Gtk.ApplicationWindow mode.set_enabled (true); var effects = this.application.lookup_action ("effects") as SimpleAction; effects.set_enabled (true); + var preferences = this.application.lookup_action ("preferences") as SimpleAction; + preferences.set_enabled (true); } /** @@ -392,6 +394,8 @@ public class Cheese.MainWindow : Gtk.ApplicationWindow mode.set_enabled (false); var effects = this.application.lookup_action ("effects") as SimpleAction; effects.set_enabled (false); + var preferences = this.application.lookup_action ("preferences") as SimpleAction; + preferences.set_enabled (false); } /** -- cgit v1.2.3